Skip to content

Instantly share code, notes, and snippets.

@ShadowOne333
ShadowOne333 / New_Stats_Window_for_Extended_Window_Table.ccs
Created May 15, 2023 20:03
Adds all Status and Resistances to be shown in the Equipment menu, for use with the Extended Window Table code only!
/* Add all Stats and Resistances to the Equipment menu */
import "../essential/asm65816.ccs"
/* NOTES:
0xC1AA5D = Part of the main routine of the Equipment selection menu. When this routine exits, it closes the windows associated with the equipment menu.
0xC19F29 = Seems to bring up the equipment selection menu for each character. Like the menu to see the Weapon, Body, Arms, and Other equipments the character has currently equipped.
0xC127EF = Character Select Prompt. Creates a selection between each characters. Used in the player's inventory menu, Ness & Poo's PSI menu, Current Equipment menu, etc.
@ShadowOne333
ShadowOne333 / Row_Front.ccs
Last active January 8, 2021 20:14
Translation Tutorial: Misc text files
import asm65816
// Update the Pointer
ROM[0xC1219A] = ASMLoadAddress06 (row_front)
// Translated Text Goes Between Quotation Marks Here
row_front:
"Front Row"
@ShadowOne333
ShadowOne333 / debug_enabler.ccs
Last active May 19, 2023 18:29
Enable the Debug Menu in-game by pressing L+R
import asm65816
// Script that enables debug mode if you hold L+R while the game boots
// OPTION 10 (Teleport) -- LEARN TELEPORT ALPHA
// OPTION 11 (Star α) -- LEARN STARSTORM ALPHA
// OPTION 12 (Star β) -- LEARN STARSTORM BETA
// OPTION 13 (Player 0), input player's name (english)
// OPTION 14 (Player 1), input player's name (kana?)
// OPTION 20 (Meter), set magicant hp/pp rolling flag (can't be undone lol, softlocks battles waiting for HP/PP to finish rolling)
@ShadowOne333
ShadowOne333 / Font_Changer.ccs
Created May 3, 2020 18:49
A CCS script to change the font to any of the available fonts in EarthBound
import asm65816
import asmref
/*
This modifies the CC_1F control code tree, this will add [1F 32], [1F 33], and [1F 34] so that you can switch fonts. This will mirror what you will see in the Font folder so that:
[1F 30] = Normal Font
[1F 31] = Saturn Font
[1F 32] = Big Font
[1F 33] = Battle Font
[1F 34] = Small Font
@ShadowOne333
ShadowOne333 / example_usage.ccs
Created November 27, 2019 20:50
EarthBound dialogue tree system implement in CCScript and EB++
import general
import faceprint
import flags
import tree
define cflag_lorraine_1 = flag count( "convo_flags", 0x0a00 )
define cflag_lorraine_2 = flag count( "convo_flags", 0x0a00 )
lorraine:
face_lorraine "Morning!" next
import ebpp
// IMPORTANT: Redefine these flags so they don't overlap with flags your project is already using
define flag_levelup_pc1 = flag 0x0a00
define flag_levelup_pc2 = flag 0x0a01
define flag_levelup_pc3 = flag 0x0a02
command ifgoto (num, target) "[06 {short num} {long target}]"
import math
def calculate_exp(constant, level):
return int(math.floor(level * level * (level + 1) * constant))
CONSTANTS = [214.0/256.0, 203.0/256.0, 0.75, 150.0/256.0]
for character_number, constant in enumerate(CONSTANTS):
print "{}:".format(character_number)
burst_of_steam: bluemagic_skill("Vented a burst of steam", burst_of_steam_text, fire1)
burst_of_steam_text:
"{sound(25)}@{user} vented a burst of steam!"
"{sound(51)}[1C 13 00 07]{pause(28)}{sound(53)}{pause(6)}[1C 13 24 00]{pause(30)}"
eob
command bluemagic_skill(skill_name, skill_text_label, skill_flag) {
if not isaacinparty {
goto(skill_text_label)
import ebpp
define FIRST_CAPSULE_ITEM = 1
define AMOUNT_OF_CAPSULE_ITEMS = 3
txt_liquid: "drank" eob
txt_capsule: "swallowed" eob
command drink_verb(item_number) {
// Store the contents of register 0 on the stack
import ebpp
command adr32(a) "[{byte[0] a} {byte[1] a} {byte[2] a} 00]"
define LOWERCASE_PREFIX = 0
define UPPERCASE_PREFIX = 4
// Prints the item name with a prefix, based in the configured prefixed in the ITEM_PREFIX_TABLE
// Example: prefixed_itemname(1, LOWERCASE_PREFIX) could print something like "the Franklin badge"
// prefixed_itemname(3, UPPERCASE_PREFIX) could print something like "An Teddy bear"