Command Button: Difference between revisions

From WonderWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<!--[[Image:CMD.PNG|border|left|Command button in Editor]]-->
[[File:CMD.PNG|200px|thumb|right|A command button in the Wonderland Adventures Editor, shown in design view.]]
[[File:CMD.PNG|200px|thumb|right|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/she plays the game, but they are visible in the [[Wonderland Adventures Editor|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.
'''Command buttons''' are used in [[Wonderland Adventures]]. They are invisible for the player when he plays the game, but they are visible in the [[Wonderland Adventures Editor|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.


<br/>The full list of known CMDs:<br/><br/>
== List of Known Commands ==
'''1:''' Opens/activates objects with ID matching Data1<br/><br/>
This is a full list of known commands in [[Wonderland Adventures]].
'''2:''' Closes/deactivates objects with ID matching Data1<br/><br/>
{| class="wikitable"
'''3:''' Toggles objects with ID matching Data1<br/><br/>
  |-
'''4:''' Sets object modifier #Data2 to value Data3 for objects with ID matching Data1<br/><br/>
    !CMD #!!Function
'''5:''' Destroy object with ID matching Data1<br/><br/>
  |-
'''6:''' Set Light<br/>
    |'''1'''||Opens/Activates Objects with ID matching Data1
:This requires three data values (Data1 = red, Data2 = green, Data3 = blue), each a value from 0-255.<br/><br/>
  |-
'''7:''' Teleport<br/>
    |'''2'''||Closes/DeActivates Objects with ID matching Data1
:This requires three data values. The first is the hub/adventure level number you wish to teleport to<!-- (see the \Data\Adventures\Hub\ directory for available *.wlv level numbers)-->, 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.<br/><br/>
  |-
'''8:''' Start Adventure<br/>
    |'''3'''||Toggles Objects with ID matching Data1
:This requires a single data value, the # of the adventure you wish to play<!-- (see Data/Adventures for available numbers)-->. 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).<br/><br/>
  |-
'''9:''' Earthquake<br/>
    |'''4'''||Sets Object modifier #Data2 to #Data3 for all Objects with ID matching Data1
:Starts an Earthquake for Data1 frames.<br/><br/>
  |-
'''21:''' Starts Dialog #Data1 with starting Interchange #Data2 (=-1 if current default is to be used)<br/><br/>
    |'''5'''||Destroys Objects with ID matching Data1
'''22:''' Changes Dialog #Data1 to have new default starting Interchange #Data2 (do not run this command while inside Dialog Data1)<br/><br/>
  |-
'''23:''' Activates [[AskAbout]] #Data2 inside Dialog #Data1<br/><br/>
    |'''6'''||Sets the Lighting of the Level to RGB Data1/Data2/Data3
'''24:''' DeActivates AskAbout #Data2 inside Dialog #Data1<br/><br/>
  |-
'''25:''' Toggles AskAbout #Data2 inside Dialog #Data1<br/><br/>
    |'''7'''||Warps Player to Level #Data1 with the specified X and Y location #Data2 and #Data 3
'''26:''' Set AskAboutActive #Data2 of Dialog #Data1 to value #Data3<br/><br/>
  |-
'''27:''' Set AskAbout #Data2 of Dialog #Data1 to point to Interchange #Data3<br/><br/>
    |'''8'''||Warps Player to Adventure #Data 1
'''28:''' Activates all AskAbouts with AskAboutActive value = Data1 across all Dialogs<br/><br/>
  |-
'''29:''' DeActivates all AskAbouts with AskAboutActive value = Data1 across all Dialogs<br/><br/>
    |'''9'''||Earthquake for Data1 frames
'''30:''' Toggles all AskAbouts with AskAboutActive value = Data1 across all Dialogs<br/><br/>
  |-
'''51:''' Change objects' movement type. Set Data1 to monster ID and Data4 to one of the following values.<br/>
    |'''10'''||Plays sound #Data1
:--[[Scritter]] Movement Types--<br/><br/>
  |-
::Data4 = 30: Nothing moves (walk on same space as Scritter to make it move)<br/>
    |'''11'''||Plays sound #Data1
::Data4 = 31: Acts like a Scritter (walking into [[Chomper]]/[[Spikeyball]] kills the player)<br/>
  |-
::Data4 = 32: Scritter again (close proximity, same as default)<br/>
    |'''12'''||Sets Music volume to #Data1 and speed to #Data3
::Data4 = 33: Scritter again (same as default?)<br/>
  |-
::Data4 = 34: Scritter again (far proximity, 4 tiles)<br/><br/>
    |'''13'''||Sets Weather to #Data1
:--[[DragonTurtles|DragonTurtle]]/Spikeyball Movement Types--<br/><br/>
  |-
::Data4 = 41: Initial direction is South (Scritters act really oddly during this)<br/>
    |'''21'''||Starts Dialog #Data1 with starting Interchange #Data2 (use -1 if current default interchange is to be used)
::Data4 = 42: Initial direction is North (Unknown what Scritters do here)<br/>
  |-
::Data4 = 43: Initial direction is East (Unknown what Scritters do here)<br/>
    |'''22'''||Changes Dialog #Data1 to have new default starting Interchange #Data2 (do not run this command while inside Dialog #Data1)
::Data4 = 44: East again<br/>
  |-
::Data4 = 45: South again<br/>
    |'''23'''||Activates &quot;AskAbout&quot; #Data2 inside Dialog #Data1
::Data4 = 46: South again<br/>
  |-
::Data4 = 47: Initial direction is West (Scritters act normal here)<br/>
    |'''24'''||DeActivates &quot;AskAbout&quot; #Data2 inside Dialog #Data1
::Data4 = 48: West again (Unknown what Scritters do here)<br/><br/>
  |-
:--??? Movement Types--<br/><br/>
    |'''25'''||Toggles &quot;AskAbout&quot; #Data2 inside Dialog #Data1
::Data4 = 71: Bounces off wall, initial direction is North (???)<br/>
  |-
::Data4 = 72: Bounces off wall, initial direction is North-East (???)<br/>
    |'''26'''||Set AskAboutActive #Data2 of Dialog #Data1 to value #Data3
::Data4 = 73: Bounces off wall, initial direction is East (???)<br/>
  |-
::Data4 = 74: Bounces off wall, initial direction is South-East (???)<br/>
    |'''27'''||Set AskAbout #Data2 of Dialog #Data1 to point to Interchange #Data3
::Data4 = 75: Bounces off wall, initial direction is South (???)<br/>
  |-
::Data4 = 76: Bounces off wall, initial direction is South-West (???)<br/>
    |'''28'''||Activates all AskAbouts with AskAboutActive #Data1
::Data4 = 77: Bounces off wall, initial direction is West (???)<br/>
  |-
::Data4 = 78: Bounces off wall, initial direction is North-West (???)<br/><br/>
    |'''29'''||DeActivates all AskAbouts with AskAboutActive #Data1
'''52:''' Set MovementType to value Data2 and MovementTypeData to value Data3, for Objects with ID matching Data1<br/><br/>
  |-
'''61:''' Move NPC<br/>
    |'''30'''||Toggles all AskAbouts with AskAboutActive #Data1
:This will move an NPC with ID "Data1" (usually a low number) to x/y coordinates "Data2/Data3".<br/><br/>
  |-
'''62:''' Change NPC Part 1<br/>
    |'''41'''||Copy object from x #Data1 and y #Data2 to x #Data3 and y #Data4 (no effect)
: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".<br/><br/>
  |-
'''63:''' Change NPC Part 2<br/>
    |'''42'''||Copy object from x #Data1 and y #Data2 to x #Data3 and y #Data4 (mothership effect)
: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".<br/><br/>
  |-
'''64:''' CMD version of NPC Exclamation button (Data1 = NPC ID, Data2 = Particle ID, Data3 = How Many)<br/><br/>
    |'''51'''||Set MovementType #Data4 for all Objects with ID matching Data1
'''102:''' [run cutscene #1--not available in WA Editor]<br/><br/>
  |-
'''103:''' [run cutscene #2--not available in WA Editor]<br/><br/>
    |'''52'''||Set MovementType #Data2 and MovementTypeData #Data3, for all Objects with ID matching Data1
'''104:''' [run cutscene #3--not available in WA Editor]<br/><br/>
  |-
'''111:''' Refills Lamp<br/><br/>
    |'''61'''||Moves Stinker NPC with ID matching Data1 to move to the specified X and Y location #Data2 and #Data3
'''112:''' Sets Inventory to 4x4 Size<br/><br/>
  |-
'''113:''' Sets Inventory to 5x5 Size<br/><br/>
    |'''62'''||Adjusts Stinker NPC with Data2 adjusting the &lsquo;Dialog&rsquo;, Data3 adjusting the &lsquo;Expression&rsquo; and Data4 adjusting the &lsquo;Yaw&rsquo; with ID matching Data1
'''114:''' [activates shards teleportation]<br/><br/>
  |-
'''115:''' [open Floing menu--not available in WA Editor]<br/><br/>
    |'''63'''||Adjusts Stinker NPC with Data2 adjusting the &lsquo;WalkAnim&rsquo;, Data3 adjusting the &lsquo;Turn&rsquo; and Data4 adjusting the &lsquo;Anim&rsquo; with ID matching Data1
'''116:''' [change player's hat--MOFI only]<br/><br/>
  |-
'''117:''' [change player's accessory--MOFI only]
    |'''64'''||Activates Stinker Expression with Particle ID matching Data2 and How Many times #Data3 with ID matching Data1
  |-
    |'''102'''||Plays Cutscene #1 (only useful in MOFI, at end of cutscene, warps player to level 21 at the x and y locations of x26 y26)
  |-
    |'''103'''||Plays Cutscene #2 (only useful in MOFI, at end of cutscene, warps player to specified spot)
  |-
    |'''104'''||Plays Cutscene #3 (only useful in MOFI, at end of cutscene, ends the game)
  |-
    |'''111'''||Refills Lamp
  |-
    |'''112'''||Sets Inventory to 4x4 Size
  |-
    |'''113'''||Sets Inventory to 5x5 Size
  |-
    |'''114'''||Activates Shard Teleportation
  |-
    |'''115'''||Starts Floing-Me-Back-In-Time Dialog
  |-
    |'''116'''||Changes players hat (only useful in MOFI)
  |-
    |'''117'''||Changes players accessory (only useful in MOFI)
|}
 
==Notes==
===Command 51 Data4 - MovementType Values===
 
====Miscellaneous====
*0: NPCs sometimes.
*10: Move to coordinates (MoveXGoal, MoveYGoal) using high-quality A* search with tolerance 0 (used by Player and NPCs)
*11: Move to coordinates (MoveXGoal, MoveYGoal) using high-quality A* search with tolerance 1
*12: Move to coordinates (MoveXGoal, MoveYGoal) using high-quality A* search with tolerance 2
*13: Move to coordinates (MoveXGoal, MoveYGoal) using mid-quality A* search with tolerance 0 (used by Chompers, Ghosts, and Coilies).
*14: Move to coordinates (MoveXGoal, MoveYGoal) using mid-quality A* search with tolerance 1 (used by awakened Wee Stinkers, Baby Boomers, and green crabs)
*15: Move to coordinates (MoveXGoal, MoveYGoal) using mid-quality A* search with tolerance 2
*16: Move to coordinates (MoveXGoal, MoveYGoal) using low-quality A* search with tolerance 0
*17: Move to coordinates (MoveXGoal, MoveYGoal) using low-quality A* search with tolerance 1
*18: Move to coordinates (MoveXGoal, MoveYGoal) using low-quality A* search with tolerance 2
 
====Scritters and Crabs====
*30: Scritter range 0
*31: Scritter range 1
*32: Scritter range 2 (default)
*33: Scritter range 3
*34: Scritter range 4
 
====Turtle/SpikeyBall====
*41: Start moving north, turn left at walls
*42: Start moving north, turn right at walls
*43: Start moving east, turn left at walls
*44: Start moving east, turn right at walls
*45: Start moving south, turn left at walls
*46: Start moving south, turn right at walls
*47: Start moving west, turn left at walls
*48: Start moving west, turn right at walls
 
====SpikeyBall====
*71: Start moving north, bounce off walls
*72: Start moving northeast, bounce off walls
*73: Start moving east, bounce off walls
*74: Start moving southeast, bounce off walls.
*75: Start moving south, bounce off walls
*76: Start moving southwest, bounce off walls
*77: Start moving west, bounce off walls
*78: Start moving northwest, bounce off walls
 
====Moobot====
*81: Start moving north, turn left at walls
*82: Start moving north, turn right at walls
*83: Start moving east, turn left at walls
*84: Start moving east, turn right at walls
*85: Start moving south, turn left at walls
*86: Start moving south, turn right at walls
*87: Start moving west, turn left at walls
*88: Start moving west, turn right at walls
 
== Command Groups ==
*1-20: General Commands
*21-30: Dialog Commands
*41-42: Copy Commands
*51-52: Movement Commands
*61-64: NPC Commands
*101+: Special Commands


[[Category:Wonderland Adventures]]
[[Category:Wonderland Adventures]]

Latest revision as of 01:00, 29 March 2020

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

Command buttons are used in Wonderland Adventures. They are invisible for the 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.

List of Known Commands

This is a full list of known commands in Wonderland Adventures.

CMD # Function
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 #Data3 for all Objects with ID matching Data1
5 Destroys Objects with ID matching Data1
6 Sets the Lighting of the Level to RGB Data1/Data2/Data3
7 Warps Player to Level #Data1 with the specified X and Y location #Data2 and #Data 3
8 Warps Player to Adventure #Data 1
9 Earthquake for Data1 frames
10 Plays sound #Data1
11 Plays sound #Data1
12 Sets Music volume to #Data1 and speed to #Data3
13 Sets Weather to #Data1
21 Starts Dialog #Data1 with starting Interchange #Data2 (use -1 if current default interchange 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 #Data1
29 DeActivates all AskAbouts with AskAboutActive #Data1
30 Toggles all AskAbouts with AskAboutActive #Data1
41 Copy object from x #Data1 and y #Data2 to x #Data3 and y #Data4 (no effect)
42 Copy object from x #Data1 and y #Data2 to x #Data3 and y #Data4 (mothership effect)
51 Set MovementType #Data4 for all Objects with ID matching Data1
52 Set MovementType #Data2 and MovementTypeData #Data3, for all Objects with ID matching Data1
61 Moves Stinker NPC with ID matching Data1 to move to the specified X and Y location #Data2 and #Data3
62 Adjusts Stinker NPC with Data2 adjusting the ‘Dialog’, Data3 adjusting the ‘Expression’ and Data4 adjusting the ‘Yaw’ with ID matching Data1
63 Adjusts Stinker NPC with Data2 adjusting the ‘WalkAnim’, Data3 adjusting the ‘Turn’ and Data4 adjusting the ‘Anim’ with ID matching Data1
64 Activates Stinker Expression with Particle ID matching Data2 and How Many times #Data3 with ID matching Data1
102 Plays Cutscene #1 (only useful in MOFI, at end of cutscene, warps player to level 21 at the x and y locations of x26 y26)
103 Plays Cutscene #2 (only useful in MOFI, at end of cutscene, warps player to specified spot)
104 Plays Cutscene #3 (only useful in MOFI, at end of cutscene, ends the game)
111 Refills Lamp
112 Sets Inventory to 4x4 Size
113 Sets Inventory to 5x5 Size
114 Activates Shard Teleportation
115 Starts Floing-Me-Back-In-Time Dialog
116 Changes players hat (only useful in MOFI)
117 Changes players accessory (only useful in MOFI)

Notes

Command 51 Data4 - MovementType Values

Miscellaneous

  • 0: NPCs sometimes.
  • 10: Move to coordinates (MoveXGoal, MoveYGoal) using high-quality A* search with tolerance 0 (used by Player and NPCs)
  • 11: Move to coordinates (MoveXGoal, MoveYGoal) using high-quality A* search with tolerance 1
  • 12: Move to coordinates (MoveXGoal, MoveYGoal) using high-quality A* search with tolerance 2
  • 13: Move to coordinates (MoveXGoal, MoveYGoal) using mid-quality A* search with tolerance 0 (used by Chompers, Ghosts, and Coilies).
  • 14: Move to coordinates (MoveXGoal, MoveYGoal) using mid-quality A* search with tolerance 1 (used by awakened Wee Stinkers, Baby Boomers, and green crabs)
  • 15: Move to coordinates (MoveXGoal, MoveYGoal) using mid-quality A* search with tolerance 2
  • 16: Move to coordinates (MoveXGoal, MoveYGoal) using low-quality A* search with tolerance 0
  • 17: Move to coordinates (MoveXGoal, MoveYGoal) using low-quality A* search with tolerance 1
  • 18: Move to coordinates (MoveXGoal, MoveYGoal) using low-quality A* search with tolerance 2

Scritters and Crabs

  • 30: Scritter range 0
  • 31: Scritter range 1
  • 32: Scritter range 2 (default)
  • 33: Scritter range 3
  • 34: Scritter range 4

Turtle/SpikeyBall

  • 41: Start moving north, turn left at walls
  • 42: Start moving north, turn right at walls
  • 43: Start moving east, turn left at walls
  • 44: Start moving east, turn right at walls
  • 45: Start moving south, turn left at walls
  • 46: Start moving south, turn right at walls
  • 47: Start moving west, turn left at walls
  • 48: Start moving west, turn right at walls

SpikeyBall

  • 71: Start moving north, bounce off walls
  • 72: Start moving northeast, bounce off walls
  • 73: Start moving east, bounce off walls
  • 74: Start moving southeast, bounce off walls.
  • 75: Start moving south, bounce off walls
  • 76: Start moving southwest, bounce off walls
  • 77: Start moving west, bounce off walls
  • 78: Start moving northwest, bounce off walls

Moobot

  • 81: Start moving north, turn left at walls
  • 82: Start moving north, turn right at walls
  • 83: Start moving east, turn left at walls
  • 84: Start moving east, turn right at walls
  • 85: Start moving south, turn left at walls
  • 86: Start moving south, turn right at walls
  • 87: Start moving west, turn left at walls
  • 88: Start moving west, turn right at walls

Command Groups

  • 1-20: General Commands
  • 21-30: Dialog Commands
  • 41-42: Copy Commands
  • 51-52: Movement Commands
  • 61-64: NPC Commands
  • 101+: Special Commands