PDA

View Full Version : PokeScript Add-on for Notepad++


Leon Blade
February 23rd, 2008, 07:12 PM
PokeScript Add-on For Notepad++
Hello, and thank you for checking out my thread!
I have made a simple Add-on for Notepad++ to detect keywords such as lock, faceplayer, release, message, boxset and more to be displayed in blue in Notepad++

Visuals:
A screenshot of the Notepadd++ add-on is located here:
i20.photobucket.com/albums/b213/LeonandMyMom/NotepadPokeScript.png

Benefits and Features:
Here are some things that will make you want to use this Add-on
1. You know you got everything spelled correctly because all Keywords will turn blue
2. Easy to navigate through #ORG - end with folder control
3. All the colors are pretty... lol

Keywords:
Click on the spoiler below to view a list of the available keywords. If theres a keyword that doesn't come up for you (and it probably will) just send me a post on this thread.

General Keywords:
Lock Faceplayer release message boxset checkflag LASTRESULT if goto compare giveitem checkitem removeitem givepokemon jingle Namepokemon setflag countpokemon selectpokemon gosub applymovement pausemove pause #Binary setvar cry wildbattle fadescreen trainerbattle setweather doweather checkgender movesprite special warp

For use with IF statements:
B_TRUE B_FALSE B_<< B_== B_>> B_<= B_>= B_!=

Additional Keywords:
#ORG return end $VariableName

How To Install:
Copy the XML and paste it in your userDefineLang.xml file
Location for Windows XP: C:\Documents and Settings\User Name\Application Data\Notepad++\userDefineLang.xml

Final Comments:
The only problem is, I thought messages used the quotes around them. Because of this, common words like "if" and "else" will show up blue in your messages.
NOTE: This will not alter the code in any way, just ignore it.
If you have any solution for this minor problem please post an answer here.

If you have any questions, comments, or concerns or what have you. Please post it here, or email me at Warlord@twcny.rr.com

The XML
Click the Spoiler to Expand the XML and place this in the location described above
<NotepadPlus>
<UserLang name="PokeScript" ext="RBC">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="yes" words2="no" words3="no" words4="yes" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">&quot;00&quot;00</Keywords>
<Keywords name="Folder+">#ORG</Keywords>
<Keywords name="Folder-">end return</Keywords>
<Keywords name="Operators">;</Keywords>
<Keywords name="Comment">1 2 0&apos;</Keywords>
<Keywords name="Words1">$</Keywords>
<Keywords name="Words2">Lock Faceplayer release message boxset checkflag LASTRESULT if goto compare giveitem checkitem removeitem givepokemon Namepokemon setflag countpokemon selectpokemon gosub applymovement pausemove pause #Binary setvar cry wildbattle fadescreen trainerbattle setweather doweather checkgender movesprite special warp #RAW clearflag</Keywords>
<Keywords name="Words3">B_TRUE B_FALSE B_&lt;&lt; B_== B_&gt;&gt; B_&lt;= B_&gt;= B_!=</Keywords>
<Keywords name="Words4">x</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="8000FF" bgColor="EEDDFF" fontName="Courier New" fontStyle="1" fontSize="10" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="8000FF" bgColor="EEDDFF" fontName="" fontStyle="1" fontSize="11" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="FF8000" bgColor="FFEFDF" fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="00A800" bgColor="DFFFDF" fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="808080" bgColor="FFFFFF" fontName="Comic Sans MS" fontStyle="0" />
<WordsStyle name="NUMBER" styleID="4" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
</Styles>
</UserLang>
</NotepadPlus>


I assume this is the correct place to be posting this. If not please redirect me to the proper area.

Chefdude548
February 24th, 2008, 03:53 PM
Brilliant idea! Is there any way this could be done for EditPadLite?


~Chef

takaharu
February 24th, 2008, 04:01 PM
Cool, thanks for this! :)

itman1234
February 24th, 2008, 04:01 PM
This seems useful!
Some words you forgot (if there is one i say that's already on there i apologize):
- clearflag
- #RAW ___ (since there are many different #RAW numbers, just make #RAW it)

Also, get rid of jingle, as it doesn't work, its a glitch in pokescript

Leon Blade
February 26th, 2008, 08:50 PM
Thanks everyone!
Brilliant idea! Is there any way this could be done for EditPadLite?


~Chef
Uhh... I don't know but I'll look into it!

itman1234, thanks for the commands. Yeah I must of forgot about clearflag, also I didn't know jingle didn't work... oh and wildbattle is gay but I guess it works. But you basically can only use the wildbattle command and nothing else, because it doesn't wait till the battle ends or even finishes fading into the battle to finish the script. It just skips right over wildbattle and goes on with the script. If anyone knows how to fix this, that would be great!

Again if anyone else has any more commands please post here and I'll add them to the main post at the top!

--Leon Blade

rsr13
February 27th, 2008, 03:43 PM
very usefull ;):D
Thanks!

Leon Blade
February 28th, 2008, 11:05 PM
No problem, just here to make things easier... and in this case... better looking... lol
The only thing is I want it to detect the hex prefix 0x so that the following numbers will be colored also...
Oh well... I guess I could try to make a script editor instead...

0m3GA AR$3NAL
April 30th, 2008, 03:05 AM
I dont seem to have a "userDEFINElangs.xml" file...

What do I do?

EDIT: NVM, I know what to do now, but when I croll down to user defined, in the language section, and switch it on, I am still wrighting normal, and keywords dont work, what is up?

Semele
April 30th, 2008, 04:48 AM
0m3GA AR$3NAL, please don't revive threads that are over a month old. It's against the rules.