Command Button

Revision as of 12:31, 7 June 2011 by Fuzboto (talk | contribs)

Template:UnknownGender

A command button in the Wonderland Adventures Editor, shown in design view.

Command buttons are used in Wonderland Adventures. They are invisible for player when he plays the game, but they are visible in the editor as a small white X on the floor. They can do a lot of things such as activating, deactivating, toggling, or destroying an object. The commands they execute are commonly referred to as CMDs.


The full list of known CMDs:

1: Opens/activates objects with ID matching Data1

2: Closes/deactivates objects with ID matching Data1

3: Toggles objects with ID matching Data1

4: Sets object modifier #Data2 to value Data3 for objects with ID matching Data1

5: Destroy object with ID matching Data1

6: Set Light

This requires three data values (Data1 = red, Data2 = green, Data3 = blue), each a value from 0-255.

7: Teleport

This requires three data values. The first is the hub/adventure level number you wish to teleport to, the second and third are the x/y coordinates. The designer must be careful when implementing this command, as a wrong coordinate might lead the player character into a wall.

8: Start Adventure

This requires a single data value, the # of the adventure you wish to play. This is different from Floing, since it lets you play that adventure as if it was the very first time (i.e. collect coins all over again).

9: Earthquake

Starts an Earthquake for Data1 frames.

21: Starts Dialog #Data1 with starting Interchange #Data2 (=-1 if current default is to be used)

22: Changes Dialog #Data1 to have new default starting Interchange #Data2 (do not run this command while inside Dialog Data1)

23: Activates AskAbout #Data2 inside Dialog #Data1

24: DeActivates AskAbout #Data2 inside Dialog #Data1

25: Toggles AskAbout #Data2 inside Dialog #Data1

26: Set AskAboutActive #Data2 of Dialog #Data1 to value #Data3

27: Set AskAbout #Data2 of Dialog #Data1 to point to Interchange #Data3

28: Activates all AskAbouts with AskAboutActive value = Data1 across all Dialogs

29: DeActivates all AskAbouts with AskAboutActive value = Data1 across all Dialogs

30: Toggles all AskAbouts with AskAboutActive value = Data1 across all Dialogs

51: Change objects' movement type. Set Data1 to monster ID and Data4 to one of the following values.

--Scritter Movement Types--

Data4 = 30: Nothing moves (walk on same space as Scritter to make it move)
Data4 = 31: Acts like a Scritter (walking into Chomper/Spikeyball kills the player)
Data4 = 32: Scritter again (close proximity, same as default)
Data4 = 33: Scritter again (same as default?)
Data4 = 34: Scritter again (far proximity, 4 tiles)

--DragonTurtle/Spikeyball Movement Types--

Data4 = 41: Initial direction is South (Scritters act really oddly during this)
Data4 = 42: Initial direction is North (Unknown what Scritters do here)
Data4 = 43: Initial direction is East (Unknown what Scritters do here)
Data4 = 44: East again
Data4 = 45: South again
Data4 = 46: South again
Data4 = 47: Initial direction is West (Scritters act normal here)
Data4 = 48: West again (Unknown what Scritters do here)

--??? Movement Types--

Data4 = 71: Bounces off wall, initial direction is North (???)
Data4 = 72: Bounces off wall, initial direction is North-East (???)
Data4 = 73: Bounces off wall, initial direction is East (???)
Data4 = 74: Bounces off wall, initial direction is South-East (???)
Data4 = 75: Bounces off wall, initial direction is South (???)
Data4 = 76: Bounces off wall, initial direction is South-West (???)
Data4 = 77: Bounces off wall, initial direction is West (???)
Data4 = 78: Bounces off wall, initial direction is North-West (???)

52: Set MovementType to value Data2 and MovementTypeData to value Data3, for Objects with ID matching Data1

61: Move NPC

This will move an NPC with ID "Data1" (usually a low number) to x/y coordinates "Data2/Data3".

62: Change NPC Part 1

This will change an NPC with ID "Data1" (usually a low number). "Data1" is their Dialog (see the list of .dia files for available options). "Data2" is their expression (0-4). "Data3" is their rotation (0-360). A value of "-1" means "do not change this setting".

63: Change NPC Part 2

This will change an NPC with ID "Data1" (usually a low number). "Data1" is their Walking Animation (0/1/2 for waddle/walk/run). "Data2" is their basic idle behaviour (try numbers between 0-29). "Data3" is their basic idle animation (try values 0-10). A value of "-1" means "do not change this setting".

64: CMD version of NPC Exclamation button (Data1 = NPC ID, Data2 = Particle ID, Data3 = How Many)

102: [run cutscene #1--not available in WA Editor]

103: [run cutscene #2--not available in WA Editor]

104: [run cutscene #3--not available in WA Editor]

111: Refills Lamp

112: Sets Inventory to 4x4 Size

113: Sets Inventory to 5x5 Size

114: [activates shards teleportation]

115: [open Floing menu--not available in WA Editor]

116: [change player's hat--MOFI only]

117: [change player's accessory--MOFI only]