Difference between revisions of "Version 2 Scripts New"

From Pokémon 3D Wiki
Jump to navigation Jump to search
m
m
Line 3: Line 3:
Commands are written as @command.subcommand and are no longer case sensitive. All commands require a subcommand.
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
Constructs were also expected to be <construct.subconstruct> and can be used basically everywhere except itself.




== A General Note to all GameMode Scripters ( Must Read ) ==
== A General Note to all GameMode Scripters ( Must Read ) ==
# This list is currently updated as of v0.49.0
# This list is currently updated as of v0.49.1
# This list is the same as what you can see when typing @help(command).
# This list is the same as what you can see when typing @help(command). This will avoid too many typo error.
# 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 ( Let blame him somewhere else )
# 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.
# There might be some missing command from the old page as well as the new page. You might want to refer both :)


== Commands  ==
== Commands  ==
Line 24: Line 25:
*Bool ( Bool are define as words such as True, False )
*Bool ( Bool are define as words such as True, False )
*Rec
*Rec
*IntArr
*IntArr ( IntArr are define as an array of [http://en.wikipedia.org/wiki/Integer Integer numbers] )
*StrArr
*StrArr ( StrArr are define as an array of letters or symbols )
*SngArr
*SngArr ( SngArr are define as an array of [http://en.wikipedia.org/wiki/Real_number Real numbers] )
*BoolArr
*BoolArr ( BoolArr are define as an array of words such as True, False )
*PokemonData ( PokemonData are define as [[Pokemon_Code|Pokemon Code]] )
*PokemonData ( PokemonData are define as [[Pokemon_Code|Pokemon Code]] )
*Arr
*Arr

Revision as of 08:37, 29 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 basically everywhere except itself.


A General Note to all GameMode Scripters ( Must Read )

  1. This list is currently updated as of v0.49.1
  2. This list is the same as what you can see when typing @help(command). This will avoid too many typo error.
  3. Please do not blame darkfire as he is not the one who make the new design on this page :D ( Let blame him somewhere else )
  4. 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.
  5. There might be some missing command from the old page as well as the new page. You might want to refer both :)

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 )
  • Sng ( Sng are define as Real numbers )
  • ItemCollection
  • Bool ( Bool are define as words such as True, False )
  • Rec
  • IntArr ( IntArr are define as an array of Integer numbers )
  • StrArr ( StrArr are define as an array of letters or symbols )
  • SngArr ( SngArr are define as an array of Real numbers )
  • BoolArr ( BoolArr are define as an array of words such as True, False )
  • PokemonData ( PokemonData are define as Pokemon Code )
  • Arr

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


@Battle

Command [@Command.Subcommand(Argument Types)] Description Inputs [Argument Types = Argument Name]
@Battle.starttrainer
@Battle.trainer
@Battle.wild
@Battle.wild
@Battle.setvar


@Camera

Command [@Command.Subcommand(Argument Types)] Description Inputs [Argument Types = Argument Name]
@Camera.set
@Camera.reset
@Camera.setyaw
@Camera.setpitch
@Camera.setposition
@Camera.setx
@Camera.sety
@Camera.setz
@Camera.togglethirdperson
@Camera.activatethirdperson
@Camera.deactivatethirdperson
@Camera.fix
@Camera.defix
@Camera.togglefix


@Chat

Command [@Command.Subcommand(Argument Types)] Description Inputs [Argument Types = Argument Name]
@Chat.clear


@Daycare

Command [@Command.Subcommand(Argument Types)] Description Inputs [Argument Types = Argument Name]
@Daycare.takeegg
@Daycare.takepokemon
@Daycare.leavepokemon
@Daycare.removeegg
@Daycare.clean


@Daycare.call
@Daycare.cleardata


@Entity

Command [@Command.Subcommand(Argument Types)] Description Inputs [Argument Types = Argument Name]
@Entity.showmessagebulb
@Entity.warp

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

Construct [<Construct.SubConstruct(Argument Types)>] Description Inputs [Argument Types = Argument Name]
@Battle.defeatmessage
@Battle.intromessage
@Battle.outromessage
@Battle.won


Camera

Construct [<Construct.SubConstruct(Argument Types)>] Description Inputs [Argument Types = Argument Name]
@Camera.isfixed
@Camera.x
@Camera.y
@Camera.z


Daycare

Construct [<Construct.SubConstruct(Argument Types)>] Description Inputs [Argument Types = Argument Name]
@Daycare.pokemonID
@Daycare.pokemonName
@Daycare.pokemonSprite
@Daycare.shinyIndicator
@Daycare.countpokemon
@Daycare.haspokemon
@Daycare.canswim
@Daycare.hasegg
@Daycare.grownlevels
@Daycare.currentlevel
@Daycare.canbreed