EXP trigger.

Posted by Scarn on Thu 02 Oct 2008 09:38 AM — 3 posts, 15,578 views.

#0
Hi, im having trouble creating a trigger I want to use to capture how much EXP I have gained since I last checked it (handy if I want to work out how much EXP I gain for killing certain things).

Here is how my EXP is displayed to me:

score
Falgor Ar-Gimilzor the numenorean returns from the depths of the Belegaer (immortal)
Your stomach is almost full, barely room for another bite.
HP: 230/230 END: 227/230 Exp: 2112706 Avg. Stats: 100
Strength: 100 Agility: 100 Charisma: 100
Constitution: 100 Coordination: 100 Intelligence: 100
Level 20 necromancer, 4d 13h 56m 2s old.

In short I need a trigger that grabs the EXP from the score line (I already have this), saves it in a different location, when I type score again it must grab the EXP again and subtract it from the old exp. I can then put that figure into a variable and use it in an output or colourtell.


Any help would be appreciated, thank you.
-Falgor
Germany #1
"In short I need a trigger that grabs the EXP from the score line (I already have this),..."

If your trigger grabs the EXP as 'EXP_New', try to add this:

_____________________________________________
EXP_Old = (world.GetVariable("EXP_Old") - 0)
EXP_Diff = EXP_New - EXP_Old

world.setvariable "EXP_Old", EXP_New

world.note "EXP gained: " & EXP_Diff
_____________________________________________

Libori
#2
I ended up doing it in my script file, works fine. Thanks for the help, if anyone wants it then just ask. Its really useful for leveling/exp hunting/documenting NPCs.
-Falgor.