Skip to content

Instantly share code, notes, and snippets.

@LOuroboros
Created February 28, 2020 04:21
Show Gist options
  • Save LOuroboros/1e00d57c2ba4a14d7368f30377526502 to your computer and use it in GitHub Desktop.
Save LOuroboros/1e00d57c2ba4a14d7368f30377526502 to your computer and use it in GitHub Desktop.
PokeScript, a User Defined Language for Notepad++ created by Ryuhouji
<NotepadPlus>
<UserLang name="PokeScript" ext="inc" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="yes" Keywords6="yes" Keywords7="yes" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00@ 01 02((EOL)) 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1">,</Keywords>
<Keywords name="Numbers, suffix2"></Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1">$</Keywords>
<Keywords name="Operators2"></Keywords>
<Keywords name="Folders in code1, open"></Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close"></Keywords>
<Keywords name="Folders in code2, open"></Keywords>
<Keywords name="Folders in code2, middle"></Keywords>
<Keywords name="Folders in code2, close"></Keywords>
<Keywords name="Folders in comment, open"></Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close"></Keywords>
<Keywords name="Keywords1">lock&#x000D;&#x000A;lockall&#x000D;&#x000A;faceplayer&#x000D;&#x000A;call&#x000D;&#x000A;goto&#x000D;&#x000A;return&#x000D;&#x000A;release&#x000D;&#x000A;releaseall&#x000D;&#x000A;end&#x000D;&#x000A;special&#x000D;&#x000A;specialvar&#x000D;&#x000A;playmoncry&#x000D;&#x000A;waitmoncry&#x000D;&#x000A;closemessage&#x000D;&#x000A;waitstate&#x000D;&#x000A;setwildbattle&#x000D;&#x000A;waitmessage&#x000D;&#x000A;warp&#x000D;&#x000A;setwarp&#x000D;&#x000A;giveitem_std&#x000D;&#x000A;showmoneybox&#x000D;&#x000A;hidemoneybox&#x000D;&#x000A;checkmoney&#x000D;&#x000A;takemoney&#x000D;&#x000A;givemoney&#x000D;&#x000A;giveitem&#x000D;&#x000A;takeitem&#x000D;&#x000A;givemon&#x000D;&#x000A;checkitem&#x000D;&#x000A;updatemoneybox&#x000D;&#x000A;checkitemspace&#x000D;&#x000A;checktrainerflag&#x000D;&#x000A;playse&#x000D;&#x000A;waitse&#x000D;&#x000A;playbgm&#x000D;&#x000A;savebgm&#x000D;&#x000A;fadeoutbgm&#x000D;&#x000A;fadedefaultbgm&#x000D;&#x000A;switch&#x000D;&#x000A;playfanfare&#x000D;&#x000A;waitfanfare&#x000D;&#x000A;fadescreen&#x000D;&#x000A;fadeinbgm&#x000D;&#x000A;setweather&#x000D;&#x000A;doweather&#x000D;&#x000A;delay&#x000D;&#x000A;fadescreenspeed&#x000D;&#x000A;fadenewbgm&#x000D;&#x000A;warp8&#x000D;&#x000A;drawheadshot&#x000D;&#x000A;getpartysize&#x000D;&#x000A;createfollower&#x000D;&#x000A;destroyfollower</Keywords>
<Keywords name="Keywords2">goto_if_eq&#x000D;&#x000A;goto_if_ne&#x000D;&#x000A;goto_if_gt&#x000D;&#x000A;goto_if_lt&#x000D;&#x000A;goto_if_ge&#x000D;&#x000A;goto_if_le&#x000D;&#x000A;call_if_eq&#x000D;&#x000A;call_if_ne&#x000D;&#x000A;call_if_gt&#x000D;&#x000A;call_if_lt&#x000D;&#x000A;call_if_ge&#x000D;&#x000A;call_if_le&#x000D;&#x000A;goto_if&#x000D;&#x000A;call_if&#x000D;&#x000A;switch&#x000D;&#x000A;addvar&#x000D;&#x000A;subvar&#x000D;&#x000A;multvar&#x000D;&#x000A;divvar&#x000D;&#x000A;goto_if_set&#x000D;&#x000A;goto_if_unset&#x000D;&#x000A;call_if_unset&#x000D;&#x000A;call_if_set&#x000D;&#x000A;compare&#x000D;&#x000A;setvar&#x000D;&#x000A;checkflag&#x000D;&#x000A;&#x000D;&#x000A;&#x000D;&#x000A;</Keywords>
<Keywords name="Keywords3">.string&#x000D;&#x000A;.byte&#x000D;&#x000A;nop&#x000D;&#x000A;.2byte&#x000D;&#x000A;waitbuttonpress&#x000D;&#x000A;dodailyevents</Keywords>
<Keywords name="Keywords4">msgbox&#x000D;&#x000A;MSGBOX_DEFAULT&#x000D;&#x000A;MSGBOX_NPC&#x000D;&#x000A;MSGBOX_YESNO&#x000D;&#x000A;MSGBOX_SIGN&#x000D;&#x000A;MSGBOX_AUTOCLOSE&#x000D;&#x000A;multichoice&#x000D;&#x000A;multichoicedefault&#x000D;&#x000A;multichoicegrid&#x000D;&#x000A;message</Keywords>
<Keywords name="Keywords5">setflag&#x000D;&#x000A;clearflag&#x000D;&#x000A;setmonmove&#x000D;&#x000A;cleartrainerflag&#x000D;&#x000A;settrainerflag&#x000D;&#x000A;hidebox2&#x000D;&#x000A;buffer&#x000D;&#x000A;pokemart&#x000D;&#x000A;checkplayergender&#x000D;&#x000A;warp&#x000D;&#x000A;trainerbattle</Keywords>
<Keywords name="Keywords6">0x&#x000D;&#x000A;FLAG_&#x000D;&#x000A;VAR_&#x000D;&#x000A;NULL&#x000D;&#x000A;MAP_&#x000D;&#x000A;SE_ &#x000D;&#x000A;case&#x000D;&#x000A;MUS_&#x000D;&#x000A;weather_&#x000D;&#x000A;move_&#x000D;&#x000A;item_&#x000D;&#x000A;random&#x000D;&#x000A;Male&#x000D;&#x000A;Female&#x000D;&#x000A;species_&#x000D;&#x000A;nature_&#x000D;&#x000A;trainer_&#x000D;&#x000A;event_obj_gfx_&#x000D;&#x000A;event_obj_id_&#x000D;&#x000A;HEAD_</Keywords>
<Keywords name="Keywords7">addobject&#x000D;&#x000A;applymovement&#x000D;&#x000A;waitmovement&#x000D;&#x000A;removeobject&#x000D;&#x000A;walk_&#x000D;&#x000A;step_&#x000D;&#x000A;emote_&#x000D;&#x000A;hideobjectat&#x000D;&#x000A;hideobject&#x000D;&#x000A;setmetatile&#x000D;&#x000A;braillemessage&#x000D;&#x000A;setmap&#x000D;&#x000A;setobjectmovement&#x000D;&#x000A;turnobject&#x000D;&#x000A;disable_jump&#x000D;&#x000A;jump_&#x000D;&#x000A;slide_&#x000D;&#x000A;setobject&#x000D;&#x000A;getplayerxy&#x000D;&#x000A;delay_&#x000D;&#x000A;opendoor&#x000D;&#x000A;waitdooranim&#x000D;&#x000A;closedoor&#x000D;&#x000A;lock_facing&#x000D;&#x000A;unlock_facing&#x000D;&#x000A;init_affine_anim&#x000D;&#x000A;clear_affine_anim&#x000D;&#x000A;moveobjectoffscreen&#x000D;&#x000A;levitate&#x000D;&#x000A;destroy_extra_task&#x000D;&#x000A;face_&#x000D;&#x000A;Common_Movement_</Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00&quot; 01 02&quot; 03\ 04 05((l p n)) 06{ 07 08} 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="959595" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="11" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="&#x69C8;&#x0709;&#x6A00;&#x0709;&#x6A70;&#x0709;&#x0001;I&#xC289;" fontStyle="0" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="000000" fontName="Verdana" fontStyle="2" fontSize="10" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="FF9240" bgColor="000000" fontName="&#x5B00;&#x0709;&#x5A58;&#x0709;&#x5CC0;&#x0709;&#x0001;I&#xC295;" fontStyle="1" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="0080FF" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="11" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="00FFFF" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="11" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="0080C0" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="11" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="008000" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="10" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="03BEFC" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="12" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="FF8040" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="10" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="7D0000" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="10" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="008080" bgColor="000000" fontName="Verdana" fontStyle="1" fontSize="9" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="B00004" bgColor="000000" fontName="Verdana" fontStyle="1" fontSize="10" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="008080" bgColor="000000" fontName="&#x7C00;&#x03A1;&#x5BE0;&#x0709;&#x7C00;&#x03A1;&#x0001;I&#xC29A;" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontName="&#x7C00;&#x03A1;&#x5978;&#x0709;&#x7C00;&#x03A1;&#x0001;I&#xC29C;" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="&#x5B38;&#x0709;&#x5BA8;&#x0709;&#x5B70;&#x0709;&#x0001;I&#xC299;" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="008000" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="10" nesting="16777222" />
<WordsStyle name="DELIMITERS2" fgColor="008080" bgColor="000000" fontName="Verdana" fontStyle="1" fontSize="9" nesting="0" />
<WordsStyle name="DELIMITERS3" fgColor="9EBB3E" bgColor="000000" fontName="Verdana" fontStyle="0" fontSize="8" nesting="0" />
<WordsStyle name="DELIMITERS4" fgColor="008080" bgColor="000000" fontName="Verdana" fontStyle="1" fontSize="9" nesting="0" />
<WordsStyle name="DELIMITERS5" fgColor="008080" bgColor="000000" fontName="Verdana" fontStyle="1" fontSize="9" nesting="0" />
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="&#x7C00;&#x03A1;&#x75D8;&#x06F6;&#x7C00;&#x03A1;&#x0001;p&#x0088;" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="008080" bgColor="000000" fontName="Verdana" fontStyle="1" fontSize="9" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="&#xAEB4;&#x64CD;&#x001D;" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>
@LOuroboros
Copy link
Author

For more information about this, check this thread on PokeCommunity (archived version).

The gist of it (heh) is that it's a preset for Syntax Highlighting that makes the scripts of the Pokémon Decompilation Projects like Pokeruby or Pokeemerald easier to diggest visually, with colors being used to identify certain macros or parameters.

I created this gist as a backup, in case anything ever happens to the original download. All the credits belong to Ryuhouji.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment