Skip to content

Instantly share code, notes, and snippets.

@PhoenixBound
PhoenixBound / fix_swirls_without_ness.ccs
Created November 5, 2025 02:39
Bug fix for sneaking up on enemies when Ness isn't in the party
// Bug fix for player/enemy advantage when Ness isn't in the party
// by PhoenixBound
// Last updated 2025-11-04
// Speedrunners noticed in the past that the logic for getting red and
// green swirls in Winters as solo Jeff seemed to be completely bonkers.
// One (acetrainerbrooke) realized that as long as you face a consistent
// direction in specific areas, and the enemy is also facing a certain
// way, you could sometimes get a green swirl.
// It turns out this observation was correct.
@PhoenixBound
PhoenixBound / cc_try_give_money.ccs
Created September 26, 2025 22:29
Fallible money giving commands for CCExpand
// "Fallible money giving" commands by PhoenixBound
// Last updated: 2025-09-26
// ---
// SETUP INSTRUCTIONS
// 1. In CCExpand.ccs, add cc_try_give_money.CC_TryGiveMoney and
// cc_try_give_money.CC_CanGiveMoney to the "CodeTable" in their
// appropriate spots.
// 2. Adjust the command definitions below, to replace "1A xx"
// and "1A yy" with their appropriate byte values, based on
// where you put them in the CodeTable in step 1.
@PhoenixBound
PhoenixBound / brain_stone_concentration_fix.ccs
Created September 19, 2025 21:45
Change to the "make unable to concentrate" battle action that checks for the presence of a Brain Stone
// Brain Stone concentration fix by PhoenixBound
// Last updated: 2025-09-18
// ---
// The Brain Stone's description says it prevents the one holding the item
// from losing concentration, the status that makes you unable to use PSI.
// But BTLACT_DISTRACT doesn't actually check for the presence of the Brain
// Stone. This script adds a check there.
// If you'd like to add a special message when the Brain Stone allows a
// character to keep their concentration, you can do that by replacing the
// BEQ(4) JML(0xC28DAB) with a BNE_a to more code that displays a different
@PhoenixBound
PhoenixBound / check_area_glitch_fix.ccs
Created September 19, 2025 21:33
"Threed tent glitch" or "check area glitch" bug fix for EarthBound
// Tent glitch fix by PhoenixBound
// Last updated 2025-09-18
import asm65816
// Edit to C07477 / getMapObjectAt: add bounds checking
ROM[0xC07482] = JSL (bounds_check_door_coords)
bounds_check_door_coords: {
// A = tile X coordinate, X = tile Y coordinate
@PhoenixBound
PhoenixBound / switch_pc_action_pronouns.ccs
Last active December 1, 2024 20:16
Switch the genders used for playable characters in battle actions in EarthBound.
// Playable Character Pronoun Switcher for Actions by PhoenixBound
// Last updated: 2024-12-01
//
// This script edits what the party members' gender is, when checked using the
// [1C 14 01] and [1C 15 01] control codes (stdext names: get_user_gender and
// get_target_gender).
// Simply edit the `PronounArray` table below to reflect the pronoun value you
// want to use for the relevant party member.
// (All the AI/non-playable party members are handled via
// enemy_config_table.yml, instead of the table added here.)
@PhoenixBound
PhoenixBound / item_modes.ccs
Created October 4, 2024 04:22
More kinds of item boxes in EarthBound -- untested edition
// Item mode script by PhoenixBound
// Last updated: 2024-10-03
//
// This script lets you give more kinds of things and experiences in item boxes.
// You're no longer limited to just items! If you can script it, you can gift it!
// To name just a few possibilities:
// - Party members (simple example provided)
// - Chests that just show a cutscene like in Mother 3 (simple examples provided)
// - Experience points or stat boosts or one-time healing
// - Nebulous, unquantifiable story progress
@PhoenixBound
PhoenixBound / stdext.ccs
Last active November 8, 2025 04:35
Proposed CCScript standard library additions/changes
/*
* RFC: CCScript Standard Library draft
* Last modified date: 2025-11-07
*/
/* Simple commands */
command linebreak "[00]"
command newline "[01]"
command eob "[02]"
@PhoenixBound
PhoenixBound / character_naming_sprite_changer.ccs
Last active May 15, 2023 16:22
Character naming/summary sprite changer
// Character Naming Sprite Changer by PhoenixBound
// Summary screen parts by Tzepish
// Last updated 2021-08-21
// Modifies the sprites that appear on the naming screen and the summary at the end.
import asm65816
ness: {
naming_screen_sprite(1, 502)
naming_screen_sprite(14, 503)
/*ASM Code to implement a proper Run Button patch to EarthBound with CoilSnake*/
/*Made by ShadowOne333 for MaternalBound (https://forum.starmen.net/forum/Community/PKHack/WIP-MaternalBound-Uncensoring-Other-junk-hack)*/
import asm65816
ROM[0xC094E3] = {
JSL (burned_status) // Jump to our ASM custom subroutine
NOP // No operation
NOP // No operation
}
/* Expanded Naming Screens
* Last updated 2020-06-01
*
* Made by PhoenixBound
* Original Naming Screen editing script by TragicManner
* Shifted positions for buttons by ShadowOne333 and PhoenixBound
*/
import asm65816