Difference between revisions of "Version 2 Scripts New"
Jianmingyong (talk | contribs) m (→Inventory) |
Jianmingyong (talk | contribs) m |
||
| Line 164: | Line 164: | ||
{{ScriptCommandV2|item|repel||||False}} | {{ScriptCommandV2|item|repel||||False}} | ||
}} | }} | ||
=== @Level === | === @Level === | ||
| Line 174: | Line 175: | ||
{{ScriptCommandV2|level|setsafari||||False}} | {{ScriptCommandV2|level|setsafari||||False}} | ||
}} | }} | ||
=== @Music === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|music|play||||False}} | |||
{{ScriptCommandV2|music|setmusicloop||||False}} | |||
{{ScriptCommandV2|music|stop||||False}} | |||
{{ScriptCommandV2|music|pause||||False}} | |||
{{ScriptCommandV2|music|resume||||False}} | |||
}} | |||
=== @NPC === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|npc|remove||||False}} | |||
{{ScriptCommandV2|npc|position||||False}} | |||
{{ScriptCommandV2|npc|warp||||False}} | |||
{{ScriptCommandV2|npc|addtoposition||||False}} | |||
{{ScriptCommandV2|npc|register||||False}} | |||
{{ScriptCommandV2|npc|unregister||||False}} | |||
{{ScriptCommandV2|npc|wearskin||||False}} | |||
{{ScriptCommandV2|npc|move||||False}} | |||
{{ScriptCommandV2|npc|setMoveY||||False}} | |||
{{ScriptCommandV2|npc|moveasync||||False}} | |||
{{ScriptCommandV2|npc|turn||||False}} | |||
{{ScriptCommandV2|npc|spawn||||False}} | |||
{{ScriptCommandV2|npc|setspeed||||False}} | |||
}} | |||
=== @Options === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|options|show||||False}} | |||
{{ScriptCommandV2|options|setcancelindex||||False}} | |||
}} | |||
=== @Player === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|player|receivepokedex||||False}} | |||
{{ScriptCommandV2|player|receivepokegear||||False}} | |||
{{ScriptCommandV2|player|renamerivel||||False}} | |||
{{ScriptCommandV2|player|wearskin||||False}} | |||
{{ScriptCommandV2|player|setonlineskin||||False}} | |||
{{ScriptCommandV2|player|move||||False}} | |||
{{ScriptCommandV2|player|moveasync||||False}} | |||
{{ScriptCommandV2|player|turn||||False}} | |||
{{ScriptCommandV2|player|turnasync||||False}} | |||
{{ScriptCommandV2|player|turnto||||False}} | |||
{{ScriptCommandV2|player|turntoasync||||False}} | |||
{{ScriptCommandV2|player|warp||||False}} | |||
{{ScriptCommandV2|player|warp||||False}} | |||
{{ScriptCommandV2|player|warp||||False}} | |||
{{ScriptCommandV2|player|warp||||False}} | |||
{{ScriptCommandV2|player|stopmovement||||False}} | |||
{{ScriptCommandV2|player|addmoney||||False}} | |||
{{ScriptCommandV2|player|setmovement||||False}} | |||
{{ScriptCommandV2|player|resetmovement||||False}} | |||
{{ScriptCommandV2|player|getbadge||||False}} | |||
{{ScriptCommandV2|player|achieveemblem||||False}} | |||
{{ScriptCommandV2|player|addbp||||False}} | |||
{{ScriptCommandV2|player|showrod||||False}} | |||
{{ScriptCommandV2|player|hiderod||||False}} | |||
{{ScriptCommandV2|player|showpokemonfollow||||False}} | |||
{{ScriptCommandV2|player|hidepokemonfollow||||False}} | |||
{{ScriptCommandV2|player|togglepokemonfollow||||False}} | |||
{{ScriptCommandV2|player|save||||False}} | |||
{{ScriptCommandV2|player|setrivalname||||False}} | |||
}} | |||
=== @Pokedex === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|pokedex|setautodetect||||False}} | |||
}} | |||
=== @Pokemon === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|pokemon|cry||||False}} | |||
{{ScriptCommandV2|pokemon|remove||||False}} | |||
{{ScriptCommandV2|pokemon|add||||False}} | |||
{{ScriptCommandV2|pokemon|add||||False}} | |||
{{ScriptCommandV2|pokemon|setadditionalvalue||||False}} | |||
{{ScriptCommandV2|pokemon|setadditionaldata||||False}} | |||
{{ScriptCommandV2|pokemon|setnickname||||False}} | |||
{{ScriptCommandV2|pokemon|setstat||||False}} | |||
{{ScriptCommandV2|pokemon|clear||||False}} | |||
{{ScriptCommandV2|pokemon|removeattack||||False}} | |||
{{ScriptCommandV2|pokemon|clearattacks||||False}} | |||
{{ScriptCommandV2|pokemon|addattack||||False}} | |||
{{ScriptCommandV2|pokemon|setshiny||||False}} | |||
{{ScriptCommandV2|pokemon|changelevel||||False}} | |||
{{ScriptCommandV2|pokemon|gainexp||||False}} | |||
{{ScriptCommandV2|pokemon|setnature||||False}} | |||
{{ScriptCommandV2|pokemon|npcTrade||||False}}genderID: 0-2||", False))" | |||
{{ScriptCommandV2|pokemon|hide||||False}} | |||
{{ScriptCommandV2|pokemon|rename||||False}} | |||
{{ScriptCommandV2|pokemon|read||||False}} | |||
{{ScriptCommandV2|pokemon|heal||||False}} | |||
{{ScriptCommandV2|pokemon|setfriendship||||False}} | |||
{{ScriptCommandV2|pokemon|addfriendship||||False}} | |||
{{ScriptCommandV2|pokemon|select||||False}} | |||
{{ScriptCommandV2|pokemon|selectmove||||False}} | |||
{{ScriptCommandV2|pokemon|calcStats||||False}} | |||
{{ScriptCommandV2|pokemon|learnAttack||||False}} | |||
{{ScriptCommandV2|pokemon|setgender||||False}} | |||
{{ScriptCommandV2|pokemon|setability||||False}} | |||
{{ScriptCommandV2|pokemon|setev||||False}} | |||
{{ScriptCommandV2|pokemon|setiv||||False}} | |||
{{ScriptCommandV2|pokemon|registerhalloffame||||False}} | |||
{{ScriptCommandV2|pokemon|setOT||||False}} | |||
{{ScriptCommandV2|pokemon|setItem||||False}} | |||
{{ScriptCommandV2|pokemon|setItemData||||False}} | |||
{{ScriptCommandV2|pokemon|setcatchtrainer||||False}} | |||
{{ScriptCommandV2|pokemon|setcatchball||||False}} | |||
{{ScriptCommandV2|pokemon|setcatchmethod||||False}} | |||
{{ScriptCommandV2|pokemon|setcatchplace||||False}} | |||
{{ScriptCommandV2|pokemon|setcatchlocation||||False}} | |||
{{ScriptCommandV2|pokemon|newroaming||||False}} | |||
{{ScriptCommandV2|pokemon|evolve||||False}} | |||
{{ScriptCommandV2|pokemon|reload||||False}} | |||
{{ScriptCommandV2|pokemon|clone||||False}} | |||
}} | |||
=== @Radio === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|radio|allowchannel||||False}} | |||
{{ScriptCommandV2|radio|blockchannel||||False}} | |||
}} | |||
=== @Register === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|register|register||||False}} | |||
{{ScriptCommandV2|register|register||||False}} | |||
{{ScriptCommandV2|register|unregister||||False}} | |||
{{ScriptCommandV2|register|unregister||||False}} | |||
{{ScriptCommandV2|register|registertime||||False}} | |||
}} | |||
=== @Screen === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|screen|storagesystem||||False}} | |||
{{ScriptCommandV2|screen|apricornkurt||||False}} | |||
{{ScriptCommandV2|screen|trade||||False}} | |||
{{ScriptCommandV2|screen|townmap||||False}} | |||
{{ScriptCommandV2|screen|donation||||False}} | |||
{{ScriptCommandV2|screen|blackout||||False}} | |||
{{ScriptCommandV2|screen|fadein||||False}} | |||
{{ScriptCommandV2|screen|fadeout||||False}} | |||
{{ScriptCommandV2|screen|credits||||False}} | |||
{{ScriptCommandV2|screen|halloffame||||False}} | |||
{{ScriptCommandV2|screen|teachmoves||||False}} | |||
{{ScriptCommandV2|screen|mailsystem||||False}} | |||
{{ScriptCommandV2|screen|pvp||||False}} | |||
{{ScriptCommandV2|screen|input||||False}} | |||
{{ScriptCommandV2|screen|mysteryevent||||False}} | |||
}} | |||
=== @Script === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|script|start||||False}} | |||
{{ScriptCommandV2|script|text||||False}} | |||
{{ScriptCommandV2|script|run||||False}} | |||
}} | |||
=== @Sound === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|sound|play||||False}} | |||
{{ScriptCommandV2|sound|playadvanced||||False}} | |||
}} | |||
=== @Storage === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|storage|set||||False}} | |||
{{ScriptCommandV2|storage|clear||||False}} | |||
{{ScriptCommandV2|storage|update||||False}} | |||
}} | |||
=== @Text === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|text|show||||False}} | |||
{{ScriptCommandV2|text|setfont||||False}} | |||
{{ScriptCommandV2|text|debug||||False}} | |||
{{ScriptCommandV2|text|log||||False}} | |||
}} | |||
=== @Title === | |||
{{ScriptCommandTableV2|Command| | |||
{{ScriptCommandV2|title|add||||False}} | |||
{{ScriptCommandV2|title|clear||||False}} | |||
}} | |||
== Constructs == | == Constructs == | ||
| Line 303: | Line 506: | ||
{{ScriptCommandV2|inventory|name||||True}} | {{ScriptCommandV2|inventory|name||||True}} | ||
{{ScriptCommandV2|inventory|ID||||True}} | {{ScriptCommandV2|inventory|ID||||True}} | ||
}} | |||
=== Level === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|level|mapfile||||True}} | |||
{{ScriptCommandV2|level|levelfile||||True}} | |||
{{ScriptCommandV2|level|filename||||True}} | |||
{{ScriptCommandV2|level|riding||||True}} | |||
{{ScriptCommandV2|level|surfing||||True}} | |||
}} | |||
=== Math === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|math|int||||True}} | |||
{{ScriptCommandV2|math|sng||||True}} | |||
{{ScriptCommandV2|math|abs||||True}} | |||
{{ScriptCommandV2|math|ceiling||||True}} | |||
{{ScriptCommandV2|math|floor||||True}} | |||
{{ScriptCommandV2|math|isint||||True}} | |||
{{ScriptCommandV2|math|issng||||True}} | |||
}} | |||
=== NPC === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|npc|position||||True}} | |||
{{ScriptCommandV2|npc|exists||||True}} | |||
{{ScriptCommandV2|npc|ismoving||||True}} | |||
{{ScriptCommandV2|npc|moved||||True}} | |||
{{ScriptCommandV2|npc|skin||||True}} | |||
{{ScriptCommandV2|npc|facing||||True}} | |||
{{ScriptCommandV2|npc|ID||||True}} | |||
{{ScriptCommandV2|npc|name||||True}} | |||
{{ScriptCommandV2|npc|action||||True}} | |||
{{ScriptCommandV2|npc|additionalvalue||||True}} | |||
{{ScriptCommandV2|npc|movement||||True}} | |||
{{ScriptCommandV2|npc|hasmoverectangles||||True}} | |||
{{ScriptCommandV2|npc|trainertexture||||True}} | |||
}} | |||
=== Phone === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|phone|callflag||||True}} | |||
{{ScriptCommandV2|phone|got||||True}} | |||
}} | |||
=== Player === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|player|position||||True}} | |||
{{ScriptCommandV2|player|hasbadge||||True}} | |||
{{ScriptCommandV2|player|skin||||True}} | |||
{{ScriptCommandV2|player|velocity||||True}} | |||
{{ScriptCommandV2|player|ismoving||||True}} | |||
{{ScriptCommandV2|player|facing||||True}} | |||
{{ScriptCommandV2|player|compass||||True}} | |||
{{ScriptCommandV2|player|money||||True}} | |||
{{ScriptCommandV2|player|name||||True}} | |||
{{ScriptCommandV2|player|gender||||True}} | |||
{{ScriptCommandV2|player|bp||||True}} | |||
{{ScriptCommandV2|player|badges||||True}} | |||
{{ScriptCommandV2|player|thirdperson||||True}} | |||
{{ScriptCommandV2|player|rival||||True}} | |||
{{ScriptCommandV2|player|rivalname||||True}} | |||
{{ScriptCommandV2|player|ot||||True}} | |||
{{ScriptCommandV2|player|gamejoltid||||True}} | |||
}} | |||
=== Pokedex === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|pokedex|caught||||True}} | |||
{{ScriptCommandV2|pokedex|seen||||True}} | |||
{{ScriptCommandV2|pokedex|shiny||||True}} | |||
}} | |||
=== Pokemon === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|pokemon|id||||True}} | |||
{{ScriptCommandV2|pokemon|number||||True}} | |||
{{ScriptCommandV2|pokemon|data||||True}} | |||
{{ScriptCommandV2|pokemon|level||||True}} | |||
{{ScriptCommandV2|pokemon|hasfullhp||||True}} | |||
{{ScriptCommandV2|pokemon|hp||||True}} | |||
{{ScriptCommandV2|pokemon|atk||||True}} | |||
{{ScriptCommandV2|pokemon|def||||True}} | |||
{{ScriptCommandV2|pokemon|spatk||||True}} | |||
{{ScriptCommandV2|pokemon|spdef||||True}} | |||
{{ScriptCommandV2|pokemon|speed||||True}} | |||
{{ScriptCommandV2|pokemon|maxhp||||True}} | |||
{{ScriptCommandV2|pokemon|isegg||||True}} | |||
{{ScriptCommandV2|pokemon|additionaldata||||True}} | |||
{{ScriptCommandV2|pokemon|nickname||||True}} | |||
{{ScriptCommandV2|pokemon|name||||True}} | |||
{{ScriptCommandV2|pokemon|ot||||True}} | |||
{{ScriptCommandV2|pokemon|trainer||||True}} | |||
{{ScriptCommandV2|pokemon|itemid||||True}} | |||
{{ScriptCommandV2|pokemon|friendship||||True}} | |||
{{ScriptCommandV2|pokemon|itemname||||True}} | |||
{{ScriptCommandV2|pokemon|catchball||||True}} | |||
{{ScriptCommandV2|pokemon|catchmethod||||True}} | |||
{{ScriptCommandV2|pokemon|catchlocation||||True}} | |||
{{ScriptCommandV2|pokemon|hasattack||||True}} | |||
{{ScriptCommandV2|pokemon|countattacks||||True}} | |||
{{ScriptCommandV2|pokemon|attackname||||True}} | |||
{{ScriptCommandV2|pokemon|isShiny||||True}} | |||
{{ScriptCommandV2|pokemon|nature||||True}} | |||
{{ScriptCommandV2|pokemon|ownpokemon||||True}} | |||
{{ScriptCommandV2|pokemon|islegendary||||True}} | |||
{{ScriptCommandV2|pokemon|freeplaceinparty||||True}} | |||
{{ScriptCommandV2|pokemon|nopokemon||||True}} | |||
{{ScriptCommandV2|pokemon|count||||True}} | |||
{{ScriptCommandV2|pokemon|countbattle||||True}} | |||
{{ScriptCommandV2|pokemon|has||||True}} | |||
{{ScriptCommandV2|pokemon|selected||||True}} | |||
{{ScriptCommandV2|pokemon|selectedmove||||True}} | |||
{{ScriptCommandV2|pokemon|hasegg||||True}} | |||
{{ScriptCommandV2|pokemon|maxpartylevel||||True}} | |||
{{ScriptCommandV2|pokemon|evhp||||True}} | |||
{{ScriptCommandV2|pokemon|evatk||||True}} | |||
{{ScriptCommandV2|pokemon|evdef||||True}} | |||
{{ScriptCommandV2|pokemon|evspatk||||True}} | |||
{{ScriptCommandV2|pokemon|evspdef||||True}} | |||
{{ScriptCommandV2|pokemon|evspeed||||True}} | |||
{{ScriptCommandV2|pokemon|ivhp||||True}} | |||
{{ScriptCommandV2|pokemon|ivatk||||True}} | |||
{{ScriptCommandV2|pokemon|ivdef||||True}} | |||
{{ScriptCommandV2|pokemon|ivspatk||||True}} | |||
{{ScriptCommandV2|pokemon|ivspdef||||True}} | |||
{{ScriptCommandV2|pokemon|spawnwild||||True}} | |||
{{ScriptCommandV2|pokemon|itemdata||||True}} | |||
{{ScriptCommandV2|pokemon|countHallofFame||||True}} | |||
{{ScriptCommandV2|pokemon|learnedTutorMove||||True}} | |||
{{ScriptCommandV2|pokemon|totalexp||||True}} | |||
{{ScriptCommandV2|pokemon|needexp||||True}} | |||
{{ScriptCommandV2|pokemon|currentexp||||True}} | |||
{{ScriptCommandV2|pokemon|generateFrontier||||True}} | |||
{{ScriptCommandV2|pokemon|spawnwild||||True}} | |||
{{ScriptCommandV2|pokemon|spawn||||True}} | |||
{{ScriptCommandV2|pokemon|OTmatch||||True}} | |||
{{ScriptCommandV2|pokemon|randomOT||||True}} | |||
{{ScriptCommandV2|pokemon|status||||True}} | |||
{{ScriptCommandV2|pokemon|canevolve||||True}} | |||
{{ScriptCommandV2|pokemon|type1||||True}} | |||
{{ScriptCommandV2|pokemon|type2||||True}} | |||
{{ScriptCommandV2|pokemon|istype||||True}} | |||
}} | |||
=== Radio === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|radio|currentchannel||||True}} | |||
}} | |||
=== Register === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|register|registered||||True}} | |||
{{ScriptCommandV2|register|count||||True}} | |||
{{ScriptCommandV2|register|type||||True}} | |||
{{ScriptCommandV2|register|value||||True}} | |||
}} | |||
=== Rival === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|rival|name||||True}} | |||
}} | |||
=== Storage === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|storage|get||||True}} | |||
{{ScriptCommandV2|storage|count||||True}} | |||
}} | |||
=== System === | |||
{{ScriptCommandTableV2|Construct| | |||
{{ScriptCommandV2|system|random||||True}} | |||
{{ScriptCommandV2|system|unixtimestamp||||True}} | |||
{{ScriptCommandV2|system|dayofyear||||True}} | |||
{{ScriptCommandV2|system|year||||True}} | |||
{{ScriptCommandV2|system|booltoint||||True}} | |||
{{ScriptCommandV2|system|calcint||||True}} | |||
{{ScriptCommandV2|system|int||||True}} | |||
{{ScriptCommandV2|system|calcsng||||True}} | |||
{{ScriptCommandV2|system|sng||||True}} | |||
{{ScriptCommandV2|system|sort||||True}} | |||
{{ScriptCommandV2|system|isinsightscript||||True}} | |||
{{ScriptCommandV2|system|lastinput||||True}} | |||
{{ScriptCommandV2|system|return||||True}} | |||
{{ScriptCommandV2|system|isint||||True}} | |||
{{ScriptCommandV2|system|issng||||True}} | |||
{{ScriptCommandV2|system|chrw||||True}} | |||
}} | }} | ||
Revision as of 16:01, 10 July 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 are written as <construct.subconstruct> and can be used basically everywhere except itself.
A General Note to all GameMode Scripters ( Must Read )
- This list is currently updated as of v0.49.1 Script Library found in game.
- 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 ( Lets blame him somewhere else. )
- 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 :)
- If you find that any command you found here doesn't work the way you want it to be, it might be a bug. Try report it over here.
Make sure that your title include the game version and state clearly what you are trying to do.
Important info / definition of certain things before we get started.
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 ( ItemCollection are define as {itemID|amount|price} )
- 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 ( Arr are define as an array of something. )
For any Optional Argument, it will be engrave by a individual square bracket for example "[Str1],[Str2],[Str3],..."
For any Rec/Arr Argument, it will be engrave by a grouped square bracket for example "[Str1,Int2,Int3,Int4,Int5],Int6..."
For any Multiple Argument ( Either or ), it will be separated by the word "OR" for example "Str1,Int2,Int3,Int4,Int5 OR Str1,Int2,Int3"
Commands
Commands are scripts that tells the game what to do. It comes with @ and usually used with switches.
The table below is split into sections by Command.
You may use the sort feature to make it list according to alphanumeric order.
@Battle
|
@Camera
|
@Chat
|
@Daycare
|
@Entity
|
@Environment
|
@Item
|
@Level
|
@Music
|
@NPC
|
@Options
|
@Player
|
@Pokedex
|
@Pokemon
|
@Radio
|
@Register
|
@Screen
|
@Script
|
@Sound
|
@Storage
|
@Text
|
@Title
|
Constructs
Constructs are script that return a specific values in game. It is used with commands or switches.
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 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.
Battle
|
Camera
|
Daycare
|
Entity
|
Environment
|
Inventory
|
Level
|
Math
|
NPC
|
Phone
|
Player
|
Pokedex
|
Pokemon
|
Radio
|
Register
|
Rival
|
Storage
|
System
|