Difference between revisions of "Version 2 Scripts New"
Jianmingyong (talk | contribs) m |
Jianmingyong (talk | contribs) m |
||
| Line 4: | Line 4: | ||
Constructs were also expected to be <construct.subconstruct> and can be used with switches too | Constructs were also expected to be <construct.subconstruct> and can be used with switches too | ||
== A General Note to all GameMode Scripters ( Must Read ) == | == A General Note to all GameMode Scripters ( Must Read ) == | ||
| Line 11: | Line 12: | ||
# Please do not blame darkfire as he is not the one who make the new design on this page :D | # Please do not blame darkfire as he is not the one who make the new design on this page :D | ||
# Also if you are a GameMode Scripter or trying to be one, you are recommended to download Notepad++ with our special syntax highlighter for checking typo mistake. | # Also if you are a GameMode Scripter or trying to be one, you are recommended to download Notepad++ with our special syntax highlighter for checking typo mistake. | ||
== Commands == | == Commands == | ||
| Line 32: | Line 34: | ||
For any optional Argument, it will be engrave by a square bracket for example "<nowiki>[str]</nowiki>" | For any optional Argument, it will be engrave by a square bracket for example "<nowiki>[str]</nowiki>" | ||
<!-- {{ScriptCommandV2|Command|Subcommand|{{ScriptArgumentV2|Name|ArgumentType|Value|Optional|Default Value|Input/blank}}|Description|Inputs|Is construct?}} --> | <!-- {{ScriptCommandV2|Command|Subcommand|{{ScriptArgumentV2|Name|ArgumentType|Value|Optional|Default Value|Input/blank}}|Description|Inputs|Is construct?}} --> | ||
=== @Battle === | === @Battle === | ||
{{ScriptCommandTableV2|Command| | {{ScriptCommandTableV2|Command| | ||
| Line 44: | Line 48: | ||
{{ScriptCommandV2|Battle|setvar|{{ScriptArgumentV2|varName|Str|1|False||}},{{ScriptArgumentV2|varValue|Str|2|False||}}|Sets a battle value. Valid arguments for "varName": canrun,cancatch,canblackout,canreceiveexp,canuseitems,frontiertrainer,divebattle,inversebattle.|{{ScriptArgumentV2|varName|Str|1|False||Input}}<br />{{ScriptArgumentV2|varValue|Str|2|False||Input}}|False}} | {{ScriptCommandV2|Battle|setvar|{{ScriptArgumentV2|varName|Str|1|False||}},{{ScriptArgumentV2|varValue|Str|2|False||}}|Sets a battle value. Valid arguments for "varName": canrun,cancatch,canblackout,canreceiveexp,canuseitems,frontiertrainer,divebattle,inversebattle.|{{ScriptArgumentV2|varName|Str|1|False||Input}}<br />{{ScriptArgumentV2|varValue|Str|2|False||Input}}|False}} | ||
}} | }} | ||
=== @Camera === | === @Camera === | ||
| Line 75: | Line 80: | ||
{{ScriptCommandV2|Camera|togglefix||Sets the fix state of the camera to the opposite of the current state.||False}} | {{ScriptCommandV2|Camera|togglefix||Sets the fix state of the camera to the opposite of the current state.||False}} | ||
}} | }} | ||
=== @Chat === | === @Chat === | ||
| Line 80: | Line 86: | ||
{{ScriptCommandV2|Chat|clear||Clears the chat.||False}} | {{ScriptCommandV2|Chat|clear||Clears the chat.||False}} | ||
}} | }} | ||
=== @Daycare === | === @Daycare === | ||
| Line 98: | Line 105: | ||
{{ScriptCommandV2|Daycare|cleardata|{{ScriptArgumentV2|daycareID|Int|1|False||}}|Clears all the data for one daycare. That includes the Pokémon stored there and a potetial egg.|{{ScriptArgumentV2|daycareID|Int|1|False||Input}}|False}} | {{ScriptCommandV2|Daycare|cleardata|{{ScriptArgumentV2|daycareID|Int|1|False||}}|Clears all the data for one daycare. That includes the Pokémon stored there and a potetial egg.|{{ScriptArgumentV2|daycareID|Int|1|False||Input}}|False}} | ||
}} | }} | ||
== Constructs == | == Constructs == | ||
| Line 133: | Line 141: | ||
*Arr | *Arr | ||
For any optional Argument, it will be engrave by a square bracket for example "<nowiki>[str]</nowiki>" | For any optional Argument, it will be engrave by a square bracket for example "<nowiki>[str]</nowiki>" | ||
=== Battle === | === Battle === | ||
| Line 144: | Line 153: | ||
{{ScriptCommandV2|Battle|won||Returns "true" if the player won the last battle. Returns "false" otherwise.||True}} | {{ScriptCommandV2|Battle|won||Returns "true" if the player won the last battle. Returns "false" otherwise.||True}} | ||
}} | }} | ||
=== Camera === | === Camera === | ||
| Line 155: | Line 165: | ||
{{ScriptCommandV2|Camera|z||Returns the current z position of the camera.||True}} | {{ScriptCommandV2|Camera|z||Returns the current z position of the camera.||True}} | ||
}} | }} | ||
=== Daycare === | === Daycare === | ||
Revision as of 16:48, 17 June 2014
Version 2 scripts were started in version 0.32. Any script in Version 2 must have "version=2" as the first line of the script.
Commands are written as @command.subcommand and are no longer case sensitive. All commands require a subcommand.
Constructs were also expected to be <construct.subconstruct> and can be used with switches too
A General Note to all GameMode Scripters ( Must Read )
- This list is currently updated as of v0.49.0
- I, jianmingyong have ensure minimal typo in the list here.
- This list is the same as what you can see when typing @help(command).
- Please do not blame darkfire as he is not the one who make the new design on this page :D
- Also if you are a GameMode Scripter or trying to be one, you are recommended to download Notepad++ with our special syntax highlighter for checking typo mistake.
Commands
Commands always have a subcommand. All combinations will be listed below.
The table is split into sections by Command.
By Default, the Argument Types are:
- Str ( Str are define as letters or symbols )
- Int ( Int are define as Integer numbers from 0 to 2147483647 )
- Sng ( Sng are define as Real numbers from 0 to 2147483647 )
- ItemCollection
- Bool ( Bool are define as words such as True, False )
- Rec
- IntArr
- StrArr
- SngArr
- BoolArr
- PokemonData ( PokemonData are define as Pokemon Code )
- Arr
For any optional Argument, it will be engrave by a square bracket for example "[str]"
@Battle
|
@Camera
|
@Chat
|
@Daycare
|
Constructs
Constructs can be used in place of any parameter for command and are used with :if: , :while: and :select: statements. They can even be used in trainer files. Constructs always have a subconstruct. All combinations will be listed below.
Constructs that return numbers such as <Pokemon.level(int)> may be used in math mathematical functions including:
+: Addition -: Subtraction /: Division *: Multiplication ^: Exponent %: Percent =: Equals >: Greater Than <: Less Than m: Mod (ex. 25m4=1) r: Root(ex. 27r3=3)
The table is split into sections by Construct.
By Default, the Argument Types are:
- Str ( Str are define as letters or symbols )
- Int ( Int are define as Integer numbers from 0 to 2147483647 )
- Sng ( Sng are define as Real numbers from 0 to 2147483647 )
- ItemCollection
- Bool ( Bool are define as words such as True, False )
- Rec
- IntArr
- StrArr
- SngArr
- BoolArr
- PokemonData ( PokemonData are define as Pokemon Code )
- Arr
For any optional Argument, it will be engrave by a square bracket for example "[str]"
Battle
|
Camera
|
Daycare
|