Skip to content

Instantly share code, notes, and snippets.

@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 April 21, 2025 01:36
Proposed CCScript standard library additions/changes
/*
* RFC: CCScript Standard Library draft
* Last modified date: 2025-02-13
*/
/* 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
@PhoenixBound
PhoenixBound / custom_text_color.ccs
Last active September 29, 2024 16:40
Improved text_color (EarthBound)
/**
* Arbitrary color text
*
* Usage: `command custom_text_color(color) "[1C 00 02 {short color}]"`
* where color is a 15-bit BGR color value.
* Reset to main color with `text_color(0)` or `text_color(1)`.
*
* Setup: Change the second magenta color in each window graphics PNG to the
* window background color.
*
@PhoenixBound
PhoenixBound / name_fun.ccs
Last active December 15, 2018 01:56
EarthBound name-printing fun
/**
* name_fun.ccs
* Last updated 14 December 2018
*/
/**
* Base commands
*/
// Get a single character from a playable character's name.