Luigi's Mansion:Docs/Event Script Tags

There are 128 event script tags to be used in creating an event in Luigi's Mansion.This list shows the name of the tag, the proper syntax, and what the tag does in execution.
===Event Tag List===
Tag 	Syntax 	Effect
WINDOW 	<WINDOW>(x) 	Opens a dialogue window.
SAY 	<WINDOW>(x)<COLOR>(x)<SAY>(x) 	Displays the rest of the text on the line
SPEAK 	<WINDOW>(x)<COLOR>(x)<SPEAK>(x) 	Tells the WINDOW the line number from the text file to display
COLOR 	<COLOR>(x) 	Determines color of text in CSV
CLOSEWINDOW 	<CLOSEWINDOW> 	Closes the dialogue window
WAIT 	<WAIT>(x) 	Delays the event for x frames (30 = 1 second).
LUIGISTOP 	<LUIGISTOP> 	Disables input and locks Luigi in place.
LUIGIFREE 	<LUIGIFREE> 	Restores input and frees Luigi from the locked state.
HP 	<HP>(x) 	Sets HP value to x.
HPMAX 	<HPMAX>(x) 	Sets the max HP to x.
CAMERA 	<CAMERA>".cmn" 	Loads the camera file in the event folder.
CAMERAWAIT 	<CAMERAWAIT>(x) 	Delays the camera for x frames (30 = 1 second)(?)
FLAGON 	<FLAGON>(x) 	Enables x flag.
FLAGOFF 	<FLAGOFF>(x) 	Disables x flag.
CHECKFLAG 	<CHECKFLAG>(x)"xon""xoff"<CASE>"255on"	Checks state of x flag. If it's on/off, it jumps to this part of the event.
CASE 	<CASE>"case1" 	<RAMDOMJMP> jumps to where the 'case' tag chose.
ACTOR 	<ACTOR>"dm_luigi" 	Selects an actor ID from the characterinfo.
ACT 	<ACTOR>"dm_luigi"<ACT>"AC_PUNCH" 	Plays an animation file from the models key folder to play.
LOOK 	<LOOK> 	Makes Luigi look at another actor in current scene
PATH 	<PATH>"l_tdm1" 	Makes an actor travel across the path in the path file
STOP 	<STOP>"dm_luigi" 	Stops the actors animtion
FREE 	<FREE>"dm_luigi" 	
SE 	<SE>(x) 	Plays a sound effect using x ID.
LEVSE 	<LEVSE>(x) 	Plays and loops a sound effect using x ID.
LEVSTOP 	<LEVSTOP>(x) 	Stops playing looping sound effect using x ID.
BGM 	<BGM>(x) 	Plays a BGM using x ID.
BGMSTOP 	<BGMSTOP> 	Stops the background music.
KEYLOCK 	<KEYLOCK>(0) 	Locks the door for the room ID.
KEYUNLOCK 	<KEYUNLOCK> 	Unlocks the door for the room ID.
LIGHT 	<LIGHT> 	Makes Mansion bright.
WARP 	<WARP>(x) 	Warps Luigi to a map using x ID.
POS 	<ACTOR>"dm_luigi"<POS>(x)(y)(z) 	Moves Luigi to the specified coordinates
EVENTWAIT 	<EVENTWAIT>(255) 	
ANYKEY 	<ANYKEY> 	Press any button to continue.
CHOICE 	<CHOICE>"case1"(x)"case2"(x)<LISTEND> 	Creates a choice dialogue to choose which case to jump to. The choice text is set by the value of x for the line number in the CSV.
GCAMERA 	<GCAMERA>"cam_file.cmn" 	Loads the camera file in the event folder.
CAMERAEND 	<CAMERAEND> 	Ends the camera.
COLON 	<COLON> 	Enables collision between actors.
COLOFF 	<COLOFF> 	Disables collision between actors.
ALPHA 	<ACTOR>"demo_actor"<ALPHA>(255) 	Sets transparency of actor. (255 is invisible - 0 is visible.)
SHADOWON 	<SHADOWON> 	Enables shadows.
SHADOWOFF 	<SHADOWOFF> 	Disables shadows.
PATHLIGHT 	<PATHLIGHT>"cam_tdm2.lig" 	
GPATHLIGHT 	<GPATHLIGHT>"cam_light.lig" 	
RAMDOMJMP 	<RAMDOMJMP>"case1""case2""case3" 	Chooses a 'case'.
BODYON 	<BODYON> 	Makes the actor visible.
BODYOFF 	<BODYOFF> 	Makes the actor invisible.
CLEARCOUNT 	<CLEARCOUNT> 	Resets any value with COUNT.
COUNTUP 	<COUNTUP> 	Used to increase a value for jumping using <COUNTJMP>.
COUNTJMP 	<COUNTJMP> 	It checks how many times that value has been increased using <COUNTUP>, and then jumps to whatever cases you have provided.
FRAMESTART 	<FRAMESTART> 	Set the rest of the tags in the event to happen in one frame.
FRAMEEND 	<FRAMEEND> 	Stops the <FRAMESTART> tag to effect anything after <FRAMEEND>.
SETCLEANER 	<SETCLEANER>"demo_vhead""demo_vbody" 	Selects the vacuum models
BEAM 	<BEAM> 	
BEAMON 	<BEAMON> 	Turns the flashlight on
BEAMOFF 	<BEAMOFF> 	Turns the flashlight off
BEAMCUT 	<BEAMCUT> 	
PATHLIGHTEND	<PATHLIGHTEND> 	
REPLACE 	<REPLACE> 	
EFFECT 	<EFFECT> 	<EFFECT>"teiden_efe1""ereki_s"
TITLE 	<TITLE> 	Warps to the title screen.
FULLSCREEN 	<FULLSCREEN> 	Makes HUD elements disappear.
NORMALSCREEN	<NORMALSCREEN> 	Makes HUD elements appear.
MASKON 	<MASKON> 	Enables the illumination effect of the selected actor
MASKOFF 	<MASKOFF> 	Disables the illumination effect of the selected actor
WEAPON 	<WEAPON> 	Equips Luigi with the Poltergust.
NOWEAPON 	<NOWEAPON> 	Unequip Luigi with the Poltergust
LUIGELTON 	<LUIGELTON> 	Luigi acts as if the room was lit. (Flashlight off)
LUIGELTOFF 	<LUIGELTOFF> 	Luigi acts as if the room was dark. (Flashlight on)
GHOSTTOTAL 	<GHOSTTOTAL>(x) 	Fetch the amount of ghost's Luigi has gotten and see if it matches with x.
PDEMO 	<PDEMO>"gb_endcall" 	Load an ADemo file or sequence. (E. Gadd on GBH.)
OPENING 	<OPENING> 	Luigi walking towards the mansion cutscene + Warps to mansion
CAMTARGET 	<CAMTARGET>"dm_luigi" 	The camera targets/looks a specific actor.
GHOSTRESET 	<GHOSTRESET> 	Reset <GHOSTTOTAL> to zero.
GENON 	<GENON>"step1_1" 	Enable spawning of ghosts.
GENOFF 	<GENOFF> 	Disabling spawning of ghosts.
PLIGHT 	<PLIGHT>(0) 	Change the room lighting. (0 for dark, 1 for lit.)
HLIGHTON 	<HLIGHTON> 	
HLIGHTOFF 	<HLIGHTOFF> 	
ALLSTOP 	<ALLSTOP> 	Stop all time and movement. Dialogue boxes only move.
ALLSTART 	<ALLSTART> 	Restore all time and movement.
TIMESTOP 	<TIMESTOP> 	
TIMEACTIVE 	<TIMEACTIVE> 	
ACTIVE 	<ACTIVE> 	Make an actor active regardless of <ALLSTOP>.
COUNTJMP2 	<COUNTJMP2> 	
DISPOFF 	<DISPOFF> 	
DISPON 	<DISPON> 	
ACCOUNT 	<ACCOUNT> 	Portrait Ghost Results.
SETLUIGI 	<SETLUIGI> 	
ALLNOCONTROL	<ALLNOCONTROL> 	
ALLCONTROL 	<ALLCONTROL> 	
WARPMOVE 	<WARPMOVE> 	
KILL 	<KILL> 	Kill Luigi.
THUNDERN 	<THUNDERN>(X)(Y)(Z)(1) 	Lightning effect.
MENUON 	<MENUON> 	Enable access to menus.
MENUOFF 	<MENUOFF> 	Disable access to menus.
WIPEKIND 	<WIPEKIND>(x) 	Sets the transition type to x for WARP.1 = Black Fade 2 =3 = White Fade
CAMENDFAST 	<CAMENDFAST> 	
LLIGHTON 	<LLIGHTON> 	
LLIGHTOFF 	<LLIGHTOFF> 	
SAVE 	<SAVE> 	Toad saves your file.
NECKOFF 	<NECKOFF> 	Disable Luigi staring at objects.
NECKON 	<NECKON> 	Enable Luigi staring at objects.
CAMTARGET2 	<CAMTARGET2> 	
CHECKTELESA 	<CHECKTELESA> 	
ENDING 	<ENDING> 	Credits
WIPETIME 	<WIPETIME>(x) 	Set the transition speed to x frames for WARP.
GALLERY 	<GALLERY> 	View the painting.
CONTEXP 	<CONTEXP> 	Training Room Controls Screen.
LUIGISTOP2 	<LUIGISTOP2> 	Lock Luigi in place.
LUIGIFREE2 	<LUIGIFREE2> 	Free's Luigi from a locked state.
OVERLAP 	<OVERLAP> 	
CAMMODEON 	<CAMMODEON> 	
COMMODEOFF 	<CAMMODEOFF> 	
ENDLESS 	<ENDLESS> 	The event never ends.
CAMSHAKE 	<CAMSHAKE> 	Earthquake effect.
FORCEMOVE 	<FORCEMOVE>(X)(Y)(Z) 	Makes Luigi walk to a set position and stop (or until he collides with something).
TURNOFF 	<TURNOFF> 	Enable the blackout sequence.
TURNON 	<TURNON> 	Disable the blackout sequence.
HSAVE 	<HSAVE> 	E. Gadd saves your file.
TIMERSTOP 	<TIMERSTOP> 	
THUNDERN2 	<THUNDERN2>(X)(Y)(Z)(1) 	Lightning effect.
ALPHAF 	<ACTOR>"dm_luigi"<ALPHAF>(255) 	Sets transparency for the specified actor. (0 is visible, 255 is invisible)
MANLIGHT 	<MANLIGHT> 	
GAMEBOYOFF 	<GAMEBOYOFF> 	
GAMEBOYON 	<GAMEBOYON> 	
CANCEL 	<CANCEL> 	
LUIGISTOP3 	<LUIGISTOP3> 	Lock Luigi in place.
URALUIGI 	<URALUIGI> 	Sets Hidden Mansion
OMOTELUIGI 	<OMOTELUIGI> 	Sets Normal Mansion
END 	<END> 	Ends the event.
===Event Tags List===
The string table for the event tags start's at these offsets:
Version 	Offset
NTSC-J (Japanese)	0x32BDAC
NTSC-U (American)	0x336C6C
PAL (European) 	0x327CB4
WINDOW 
SAY 
SPEAK 
COLOR 
CLOSEWINDOW 
WAIT 
LUIGISTOP 
LUIGIFREE 
HP 
HPMAX 
CAMERA 
CAMERAWAIT 
FLAGON 
FLAGOFF 
CHECKFLAG 
CASE 
ACTOR 
ACT 
LOOK 
PATH 
STOP 
FREE 
SE 
LEVSE 
LEVSTOP 
BGM 
BGMSTOP 
KEYLOCK 
KEYUNLOCK 
LIGHT 
WARP 
POS 
EVENTWAIT 
ANYKEY 
CHOICE 
GCAMERA 
CAMERAEND 
COLON 
COLOFF 
ALPHA 
SHADOWON 
SHADOWOFF 
PATHLIGHT 
GPATHLIGHT 
RAMDOMJMP 
BODYON 
BODYOFF 
CLEARCOUNT 
COUNTUP 
COUNTJMP 
FRAMESTART 
FRAMEEND 
SETCLEANER 
BEAM 
BEAMON BEAMOFF 
BEAMCUT 
PATHLIGHTEND 
REPLACE 
EFFECT 
TITLE 
FULLSCREEN 
NORMALSCREEN 
MASKON MASKOFF 
WEAPON NOWEAPON 
LUIGELTON 
LUIGELTOFF 
GHOSTTOTAL 
PDEMO 
OPENING 
CAMTARGET 
GHOSTRESET 
GENON 
GENOFF 
PLIGHT 
HLIGHTON 
HLIGHTOFF 
ALLSTOP 
ALLSTART 
TIMESTOP 
TIMEACTIVE 
ACTIVE 
COUNTJMP2 
DISPOFF 
DISPON 
ACCOUNT 
SETLUIGI 
ALLNOCONTROL 
ALLCONTROL 
WARPMOVE 
KILL 
THUNDERN 
MENUON 
MENUOFF 
WIPEKIND 
CAMENDFAST 
LLIGHTON 
LLIGHTOFF 
SAVE 
NECKOFF 
NECKON 
CAMTARGET2 
CHECKTELESA 
ENDING 
WIPETIME 
GALLERY 
CONTEXP 
LUIGISTOP2 
LUIGIFREE2 
OVERLAP 
CAMMODEON 
CAMMODEOFF 
ENDLESS 
CAMSHAKE 
FORCEMOVE 
TURNOFF 
TURNON 
HSAVE 
TIMERSTOP 
THUNDERN2 
ALPHAF 
MANLIGHT 
GAMEBOYOFF 
GAMEBOYON 
CANCEL 
LUIGISTOP3 
URALUIGI 
OMOTELUIGI 
END 
Category:Under Construction