Command Button: Difference between revisions

From WonderWiki
Jump to navigation Jump to search
(Created page with "=== border|left|Command button in Editor-General Command Button === Command buttons are used in Wonderland Adventures. They are invisible for player when h...")
 
(No difference)

Revision as of 22:20, 17 April 2011

Command button in Editor
-General Command Button

Command buttons are used in Wonderland Adventures. They are invisible for player when he play the game, but is visible in editor;look like a small on the floor. CMD Buttons is used for changing game play or the level. They actually can do a lot of things like activating/deactivating/toggle/destroy an object.


The full list of knows CMDs:

Command 1 Opens/Activates Objects with ID matching Data1

Command 2 Closes/DeActivates Objects with ID matching Data1

Command 3 Toggles Objects with ID matching Data1

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

Command: 5 - Destroy Object
Again, requires and ID value as the first Data value.

Command: 6 - Set Light
This requires three data values (Data 1=red, Data 2=green, Data 3=blue), each a value from 0-255.

Command: 7 - Teleport
This requires three data values. The first is the hub/ adventure -level number you wish to teleport to (see Data/Adventures/Hub for available *.wlv level numbers), the second and third are the x/y coordinates. Obviously, pick carefully or you'll end up in a wall!

Command: 8 - Start Adventure
This requires a single data value, the # of the adventure you wish to play (see Data/Adventures for available numbers). This is different than "Floing"ing, since it lets you play that adventure as if it was the very first time (i.e. collect coins all over again).

Command: 9 - Earthquake
Starts an Earthquake for "Data1" time, a value of 60 is roughly one second.

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

Command 51:Change objects movement type. Set Data1 to monster ID and Data4 to those value.
[Quote=”Data4 value”]--Scritter Movement Types--

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

--DragonTurtle/Spikeyball Movement Types--

41: Initial direction is South (Scritters act really oddly during this)
42: Initial direction is North (No idea what Scritters do here)
43: Initial direction is East (No idea what Scritters do here)
44: East again
45: South again
46: South again
47: Initial direction is West (Scritters act normal here)
48: West again (Yet I have no idea what Scritters do here)

--??? Movement Types--

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

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

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

Command: 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".

Command: 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]