|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Sun Jan 31, 2010 9:51 pm
script stoped working |
the below code worked fine when the exp for next level was
Experience Needed for Next Level: [2200]
but now that the line is
Experience Needed for Next Level: [-4596]
it has stopped working, and my only guess is it can be this one stalling up because nothing else changed
Code: |
<class name="endofkill" id="81">
<trigger priority="820" id="82">
<pattern>^Class: Knight Level: (%d) Race: High Elf Age: (%d)</pattern>
<value>#gagspace
#gagon
#addkey endofkilldb level %1
#addkey endofkilldb age %2</value>
</trigger>
<trigger priority="830" id="83">
<pattern>^Str: ~[(%d)~] Int: ~[(%d)~] Wis: ~[(%d)~] Dex: ~[(%d)~] Con: ~[(%d)~]</pattern>
<value>#addkey endofkilldb str %1
#addkey endofkilldb int %2
#addkey endofkilldb wis %3
#addkey endofkilldb dex %4
#addkey endofkilldb con %5</value>
</trigger>
<trigger priority="840" id="84">
<pattern>^Hitpoints: ~[(%d)~/(%d)~] Mana: ~[(%d)~/(%d)~] Movement: ~[(%d)~/(%d)~]</pattern>
<value>#addkey endofkilldb hp %1
#addkey endofkilldb Mhp %2
#addkey endofkilldb mn %3
#addkey endofkilldb Mmn %4
#addkey endofkilldb mv %5
#addkey endofkilldb Mmv %6</value>
</trigger>
<trigger priority="850" id="85">
<pattern>^Hitroll: ~[(%d)~] Damroll: ~[(%d)~] Armor Value: ~[(%d)~]</pattern>
<value>#addkey endofkilldb hr %1
#addkey endofkilldb dr %2
#addkey endofkilldb ac %3</value>
</trigger>
<trigger priority="860" id="86">
<pattern>^Saves vs. Para: ~[(%d)~] Rod: ~[(%d)~] Petri: ~[(%d)~] Breath: ~[(%d)~] Spell: ~[(%d)~]</pattern>
<value>#addkey endofkilldb para %1
#addkey endofkilldb rod %2
#addkey endofkilldb petri %3
#addkey endofkilldb breath %4
#addkey endofkilldb spell %5</value>
</trigger>
<trigger priority="870" id="87">
<pattern>^Weight Carried: ~[(%d)~/(%d) lbs.~] Weight Worn: ~[(%d)~/(%d) lbs.~]</pattern>
<value>#addkey endofkilldb weight %1
#addkey endofkilldb Mweight %2
#addkey endofkilldb weightw %3
#addkey endofkilldb Mweightw %4</value>
</trigger>
<trigger priority="880" id="88">
<pattern>^Experience Earned: ~[(%d)~] Gold Coins: ~[(%d)~]</pattern>
<value>#addkey endofkilldb Eexp %1
#addkey endofkilldb Gold %2</value>
</trigger>
<trigger priority="890" id="89">
<pattern>^Experience Needed for Next Level: ~[(%d)~]</pattern>
<value>#addkey endofkilldb TNL %abs(%1)
#addkey endofkilldb dif %eval( %abs(%db( @endofkilldb, LTNL)-%db( @endofkilldb, TNL)))
#addkey endofkilldb LTNL %abs(%1)
#gagoff
#echo @cyan( "E")@teal( "xp ")@cyan( "g")@teal( "ained ")@cyan( "t")@teal( "hat ")@cyan( "f")@teal( "ight ")@red( %db( @endofkilldb, dif)@cyan( " T")@teal( "NL: ")@red( %1))
#T- endofkill</value>
</trigger>
</class>
|
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Feb 01, 2010 12:04 am |
%d only matches numeric characters (0-9, in any continuous combination).
9999999999999999999 <-- %d matches
1.00 <-- %d does not match
1,000 <-- %d does not match
-1 <-- %d does not match
Unless the fact that it's a negative number is a real and separate problem for you, a simple change from %d to %n will let your trigger match. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|