Difference between revisions of "Version 2 Scripts New"

From Pokémon 3D Wiki
Jump to navigation Jump to search
(Created page with "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...")
 
Line 46: Line 46:
| @Battle.starttrainer(str)
| @Battle.starttrainer(str)
| Initializes a trainer interaction and checks if the player has already beaten that trainer.
| Initializes a trainer interaction and checks if the player has already beaten that trainer.
| str = trainerFile
| str = trainerFile ( Default value = None )
|-
|-
| @Battle.trainer(Str)
| @Battle.trainer(Str)
| Initializes a trainer battle.
| Initializes a trainer battle.
| str = trainerFile
| str = trainerFile ( Default value = None )
|-
|-
| @Battle.wild(PokemonData,str)
| @Battle.wild(PokemonData,str)

Revision as of 11:41, 15 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 )

  1. This list is currently updated as of v0.49.0
  2. I, jianmingyong have ensure minimal typo in the list here.
  3. This list is the same as what you can see when typing @help(command).
  4. Please do not blame darkfire as he is not the one who make the new design on this page :D
  5. 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
  • Int
  • Sng
  • ItemCollection
  • Bool
  • Rec
  • IntArr
  • StrArr
  • SngArr
  • BoolArr
  • PokemonData
  • Arr

For any optional Argument, it will be engrave by a square braket for example "[str]"

@Battle

Command [ @Command.Subcommand(Argument Types) ] Description Inputs
@Battle.starttrainer(str) Initializes a trainer interaction and checks if the player has already beaten that trainer. str = trainerFile ( Default value = None )
@Battle.trainer(Str) Initializes a trainer battle. str = trainerFile ( Default value = None )
@Battle.wild(PokemonData,str) Initializes the battle with a wild Pokémon. PokemonData = Refer Pokemon Code

str = musicloop