Script Editor Usage

From Terranigma Wiki
Revision as of 01:03, 17 February 2018 by Crediar (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
PlayerPort
SetRespawnLocation
Print16
Print24
WaitMessage
OnTrigger
Unknown_23
SetObjectSolid
PlayMusic
GotoPositionX
EventFlagSetSkip
GiveItem
SetAnimationA
WaitAnimation
Delay
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()