Difference between revisions of "Script Editor Usage"
Jump to navigation
Jump to search
(Created page with "This window allows you to write your own event scripts, it will replace the whatever is at the given offset. The following commands are implemented, see the [[Script_Format|s...") |
m (Added more functions) |
||
Line 5: | Line 5: | ||
ModifyEventFlag | ModifyEventFlag | ||
EventFlagSetJump | EventFlagSetJump | ||
SpriteSetPosition | |||
PlayerPort | PlayerPort | ||
SetBonepinWarp | |||
SetRespawnLocation | SetRespawnLocation | ||
Print16 | Print16 | ||
Line 13: | Line 15: | ||
Unknown_23 | Unknown_23 | ||
SetObjectSolid | SetObjectSolid | ||
BlockSetCollision | |||
PlayMusic | PlayMusic | ||
GotoPositionX | GotoPositionX | ||
EventFlagSetSkip | EventFlagSetSkip | ||
GiveItem | GiveItem | ||
DelItem | |||
GiveItemPlayMusic | |||
ObjectMove | |||
SetAnimationA | SetAnimationA | ||
WaitAnimation | WaitAnimation | ||
WaitAnimation2 | |||
ObjectDelete | |||
SpriteSetFacingRight | |||
SpriteSetFacingLeft | |||
MarkOrigin | |||
Delay | Delay | ||
FightingStatsLoad | |||
asm | asm | ||
<br> | <br> |
Latest revision as of 00:37, 14 March 2021
This window allows you to write your own event scripts, it will replace the whatever is at the given offset.
The following commands are implemented, see the scripts site for the arguments.
ModifyEventFlag EventFlagSetJump SpriteSetPosition PlayerPort SetBonepinWarp SetRespawnLocation Print16 Print24 WaitMessage OnTrigger Unknown_23 SetObjectSolid BlockSetCollision PlayMusic GotoPositionX EventFlagSetSkip GiveItem DelItem GiveItemPlayMusic ObjectMove SetAnimationA WaitAnimation WaitAnimation2 ObjectDelete SpriteSetFacingRight SpriteSetFacingLeft MarkOrigin Delay FightingStatsLoad asm
This prints a simple message:
SetObjectSolid() OnTrigger("msg") loop: Unknown_23("loop") SetAnimationA(0) WaitAnimation() asm(0x80,0xF5) // BRA $-11 msg: Print16("Test") WaitMessage()
This is an example script from the boss rush mod:
SetObjectSolid() OnTrigger("msg") loop: Unknown_23("loop") SetAnimationA(0) WaitAnimation() asm(0x80,0xF5) // BRA $-11 msg: Print16("Welcome to\nBoss rush\nVersion 0.3") WaitMessage() SetRespawnLocation(0x32B,0x0,0xF0,0x2B0,0x3,0x0,0x210,0x210) EventFlagSetJump(0x8000,0x40,"skip") ModifyEventFlag(0x8000,0x40) ModifyEventFlag(0x801F,0x40) asm(0xE2,0x20,0xA9,0x02,0x8D,0x91,0x06,0xC2,0x20) GiveItem(16) GiveItem(17) GiveItem(128) GiveItem(129) GiveItem(191) GotoPositionX(0x05,0x60,0x1C) WaitAnimation() SetAnimationA(0) SetObjectSolid() skip: WaitAnimation()