What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[standalone] notepad++ language for Trinity loot rules

aaron913

New Member
Joined
Dec 8, 2011
Messages
453
Reaction score
1
Hopefully this is the right section o.o
Figured I'd share as I spent some time on this, I wasn't familiar with how to go about creating my own language - it might be kind of ghetto to some but it works for me :P
I'm willing to update this as changes occur with trinity if it is of interest to anyone lol
If this is entirely useless I apologize, half bored and half didn't know another way to verify loot rules.

[standalone] notepad++ language for Trinity loot rules
DOWNLOAD : View attachment ItemRulesNotepadpp2.zip
Requires : Notepad++
http://notepad-plus-plus.org/download/v6.3.html

About :
I made this color scheme to help avoid mistakes with coding item rules edited/created 'by hand'
Currently it will color anything that isn't common code an obvious black/red color as opposed to the pleasent color scheme of valid ]code

Here is an example, line 96 lets you see how to check parenthesis (only method atm is to click one and see its buddy)
line 99 shows what you would see if you left out a bracket or an incorrect operator
yDcjpRl.png


To Do / Bugs:
Bug - likes to show the very last bit of code as 'invalid'
Verify this works with item ID as apposed to name
Improve parenthesis check, currently the only way to do is to click near one to turn it and it's partner red
checks for item names don't exist but those are hard to mess up IMO - easier to copy and paste than type them out
add .max as code if implemented
clean up the hideous formatting of this post

Instructions :
View -> User-Defined Dialog > Import... (select this 'language') > Save As... (to add it to notepad for future edits)
N48g0wC.jpg

5ueR38a.jpg

To edit colors or add 'valid code' that may be missing : (I probably don't have it all added - So far it only works with what I have used in my loot rules thus far)
This is an old screen shot but you get the picture, look through here to change colors
hjzlF07.jpg

Thanks:
Job2k9 - Helped me with my loot rules :D
 
Last edited:
I figured darkfriend77 had to have his own, wasn't sure what he used tho :)
 
For those having trouble with setup on Notepad++, for me it worked like this:

Unrar -> rename TrinityLootRules1.1.2 to TrinityLootRules1.1.2.xml
=>Language -> Define your language -> Import -> TrinityLootRules1.1.2 -> restart Notepad++
=> Language -> loot rules

@aaron913

Were these Loot Rules you use posted public? If not is it possible to share them? What I can see looks decent.
 
Back
Top