Command Button: Difference between revisions

From WonderWiki
Jump to navigation Jump to search
m (moved Command Buttons to Command Button over redirect)
No edit summary
Line 3: Line 3:
'''Command buttons''' are used in [[Wonderland Adventures]]. They are invisible for 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.
'''Command buttons''' are used in [[Wonderland Adventures]]. They are invisible for 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/>
== The Full 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/>
<table border="2" cellspacing="0" style="font-family:'Times New Roman', Times, serif;font-size:14px;">
'''3:''' Toggles objects with ID matching Data1<br/><br/>
  <tr>
'''4:''' Sets object modifier #Data2 to value Data3 for objects with ID matching Data1<br/><br/>
    <td><p><strong>Command#</strong></p></td>
'''5:''' Destroy object with ID matching Data1<br/><br/>
    <td><p><strong>Function</strong></p></td>
'''6:''' Set Light<br/>
  </tr>
:This requires three data values (Data1 = red, Data2 = green, Data3 = blue), each a value from 0-255.<br/><br/>
  <tr>
'''7:''' Teleport<br/>
    <td><p><strong>1</strong></p></td>
: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/>
    <td><p>Opens/Activates Objects with ID matching Data1</p></td>
'''8:''' Start Adventure<br/>
  </tr>
: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/>
  <tr>
'''9:''' Earthquake<br/>
    <td><p><strong>2</strong></p></td>
:Starts an Earthquake for Data1 frames.<br/><br/>
    <td><p>Closes/DeActivates Objects with ID matching Data1</p></td>
'''21:''' Starts Dialog #Data1 with starting Interchange #Data2 (=-1 if current default is to be used)<br/><br/>
  </tr>
'''22:''' Changes Dialog #Data1 to have new default starting Interchange #Data2 (do not run this command while inside Dialog Data1)<br/><br/>
  <tr>
'''23:''' Activates AskAbout #Data2 inside Dialog #Data1<br/><br/>
    <td><p><strong>3</strong></p></td>
'''24:''' DeActivates AskAbout #Data2 inside Dialog #Data1<br/><br/>
    <td><p>Toggles Objects with ID matching Data1</p></td>
'''25:''' Toggles AskAbout #Data2 inside Dialog #Data1<br/><br/>
  </tr>
'''26:''' Set AskAboutActive #Data2 of Dialog #Data1 to value #Data3<br/><br/>
  <tr>
'''27:''' Set AskAbout #Data2 of Dialog #Data1 to point to Interchange #Data3<br/><br/>
    <td><p><strong>4</strong></p></td>
'''28:''' Activates all AskAbouts with AskAboutActive value = Data1 across all Dialogs<br/><br/>
    <td><p>Sets Object modifier #Data2 to #Data3 for all Objects with ID matching   Data1</p></td>
'''29:''' DeActivates all AskAbouts with AskAboutActive value = Data1 across all Dialogs<br/><br/>
  </tr>
'''30:''' Toggles all AskAbouts with AskAboutActive value = Data1 across all Dialogs<br/><br/>
  <tr>
'''51:''' Change objects' movement type. Set Data1 to monster ID and Data4 to one of the following values.<br/>
    <td><p><strong>5</strong></p></td>
    <td><p>Destroys Objects with ID matching Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>6</strong></p></td>
    <td><p>Sets the Lighting of the Level to RGB Data1/Data2/Data3</p></td>
  </tr>
  <tr>
    <td><p><strong>7</strong></p></td>
    <td><p>Warps Player to Level #Data1 with the specified X and Y location    #Data2 and #Data 3</p></td>
  </tr>
  <tr>
    <td><p><strong>8</strong></p></td>
    <td><p>Warps Player to Adventure #Data 1</p></td>
  </tr>
  <tr>
    <td><p><strong>9</strong></p></td>
    <td><p>Earthquake for Data1 frames</p></td>
  </tr>
  <tr>
    <td><p><strong>21</strong></p></td>
    <td><p>Starts Dialog #Data1 with starting Interchange #Data2 (use -1 if   current default interchange is to be used)</p></td>
  </tr>
  <tr>
    <td><p><strong>22</strong></p></td>
    <td><p>Changes Dialog #Data1 to have new default starting Interchange #Data2   (do not run this command while inside Dialog #Data1)</p></td>
  </tr>
  <tr>
    <td><p><strong>23</strong></p></td>
    <td><p>Activates &quot;AskAbout&quot; #Data2 inside Dialog #Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>24</strong></p></td>
    <td><p>DeActivates &quot;AskAbout&quot; #Data2 inside Dialog #Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>25</strong></p></td>
    <td><p>Toggles &quot;AskAbout&quot; #Data2 inside Dialog #Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>26</strong></p></td>
    <td><p>Set AskAboutActive #Data2 of Dialog #Data1 to value #Data3</p></td>
  </tr>
  <tr>
    <td><p><strong>27</strong></p></td>
    <td><p>Set AskAbout #Data2 of Dialog #Data1 to point to Interchange #Data3</p></td>
  </tr>
  <tr>
    <td><p><strong>28</strong></p></td>
    <td><p>Activates all AskAbouts with AskAboutActive #Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>29</strong></p></td>
    <td><p>DeActivates all AskAbouts with AskAboutActive #Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>30</strong></p></td>
    <td><p>Toggles all AskAbouts with AskAboutActive #Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>51</strong></p></td>
    <td><p>Set MovementType #Data4 for all Objects with ID matching Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>52</strong></p></td>
    <td><p>Set MovementType #Data2 and MovementTypeData #Data3, for all Objects    with ID matching Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>61</strong></p></td>
    <td><p>Moves Stinker NPC with ID matching Data1 to move to the specified X    and Y location #Data2 and #Data3</p></td>
  </tr>
  <tr>
    <td><p><strong>62</strong></p></td>
    <td><p>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</p></td>
  </tr>
  <tr>
    <td><p><strong>63</strong></p></td>
    <td><p>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</p></td>
  </tr>
  <tr>
    <td><p><strong>64</strong></p></td>
    <td><p>Activates Stinker Expression with Particle ID matching Data2 and How    Many times #Data3 with ID matching Data1</p></td>
  </tr>
  <tr>
    <td><p><strong>102</strong></p></td>
    <td><p>Plays Cutscene #1 (only useful in MOFI, at end of cutscene, warps    player to level 21 at the x and y locations of x26 y25)</p></td>
  </tr>
  <tr>
    <td><p><strong>103</strong></p></td>
    <td><p>Plays Cutscene #2 (only useful in MOFI, at end of cutscene, warps player    to specified spot)</p></td>
  </tr>
  <tr>
    <td><p><strong>104</strong></p></td>
    <td><p>Plays Cutscene #3 (only useful in MOFI, at end of cutscene, ends the   game)</p></td>
  </tr>
  <tr>
    <td><p><strong>111</strong></p></td>
    <td><p>Refills Lamp</p></td>
  </tr>
  <tr>
    <td><p><strong>112</strong></p></td>
    <td><p>Sets Inventory to 4x4 Size</p></td>
  </tr>
  <tr>
    <td><p><strong>113</strong></p></td>
    <td><p>Sets Inventory to 5x5 Size</p></td>
  </tr>
  <tr>
    <td><p><strong>114</strong></p></td>
    <td><p>Activates Shard Teleportation</p></td>
  </tr>
  <tr>
    <td><p><strong>115</strong></p></td>
    <td><p>Starts Floing-Me-Back-In-Time Dialog</p></td>
  </tr>
  <tr>
    <td><p><strong>116</strong></p></td>
    <td><p>Changes players hat (only useful in MOFI)</p></td>
  </tr>
  <tr>
    <td><p><strong>117</strong></p></td>
    <td><p>Changes players accessory (only useful in MOFI)</p></td>
  </tr>
</table>
=== Command 51 Data4 - MovementType Values ===
:--[[Scritter]] Movement Types--<br/><br/>
:--[[Scritter]] Movement Types--<br/><br/>
::Data4 = 30: Nothing moves (walk on same space as Scritter to make it move)<br/>
::Data4 = 30: Nothing moves (walk on same space as Scritter to make it move)<br/>
Line 52: Line 176:
::Data4 = 77: Bounces off wall, initial direction is West (???)<br/>
::Data4 = 77: Bounces off wall, initial direction is West (???)<br/>
::Data4 = 78: Bounces off wall, initial direction is North-West (???)<br/><br/>
::Data4 = 78: Bounces off wall, initial direction is North-West (???)<br/><br/>
'''52:''' Set MovementType to value Data2 and MovementTypeData to value Data3, for Objects with ID matching Data1<br/><br/>
 
'''61:''' Move NPC<br/>
=== Command Groups ===
:This will move an NPC with ID "Data1" (usually a low number) to x/y coordinates "Data2/Data3".<br/><br/>
Every 10 commands have something in common:
'''62:''' Change NPC Part 1<br/>
*1-10: General Commands
: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/>
*11-20: Unknown
'''63:''' Change NPC Part 2<br/>
*21-30: Changes The Effects Of Dialogs
: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/>
*30-40: Unknown
'''64:''' CMD version of NPC Exclamation button (Data1 = NPC ID, Data2 = Particle ID, Data3 = How Many)<br/><br/>
*51-60: Changes The Effects Of Monstars
'''102:''' [run cutscene #1--not available in WA Editor]<br/><br/>
*61-70: Changes The Effects Of NPC's
'''103:''' [run cutscene #2--not available in WA Editor]<br/><br/>
*71-80: Unknown
'''104:''' [run cutscene #3--not available in WA Editor]<br/><br/>
*81-90: Unknown
'''111:''' Refills Lamp<br/><br/>
*91-100: Unknown
'''112:''' Sets Inventory to 4x4 Size<br/><br/>
*101+: Random
'''113:''' Sets Inventory to 5x5 Size<br/><br/>
'''114:''' [activates shards teleportation]<br/><br/>
'''115:''' [open Floing menu--not available in WA Editor]<br/><br/>
'''116:''' [change player's hat--MOFI only]<br/><br/>
'''117:''' [change player's accessory--MOFI only]


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

Revision as of 23:39, 25 September 2011

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 Commands

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

Command#

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

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

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 y25)

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)

Command 51 Data4 - MovementType 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 (???)

Command Groups

Every 10 commands have something in common:

  • 1-10: General Commands
  • 11-20: Unknown
  • 21-30: Changes The Effects Of Dialogs
  • 30-40: Unknown
  • 51-60: Changes The Effects Of Monstars
  • 61-70: Changes The Effects Of NPC's
  • 71-80: Unknown
  • 81-90: Unknown
  • 91-100: Unknown
  • 101+: Random