|
adamwalker Apprentice
Joined: 12 Mar 2005 Posts: 195
|
Posted: Sat Mar 12, 2005 5:06 pm
Strange prompt trigger -HELP |
HEY, ill be very gratefull to anyone who can solve this problem for me...
this is the normal promt i have
260h, 170m (-)
and when i use different skills the prompts change
eg
260h, 270m e(-) ----- I have equilibrium
260h, 270m e([{-}]) ------ hidden with eq
260h, 270m eab([{-}]) ------ hidden with eq and other skills (a and b)
so the layout is basically
%1 h, %2 m , %3(%4)
what i want to do iuse have
the first health value put into variable @health , mana into @mana and for the end if %3 contains 'e' then @equilibrium = 1 and if %3 contains a @skillxxx = 1, also if %3 doesnt contain e then @equilibrium = 0
also if %4 = [{-}] then @hidden = 1
so if this prompt was triggered
260h, 270m ea([{-}]) the outcome should be
@health = 260
@mana = 270
@equilibrium = 1
@otherskilla = 1
@hidden = 1
@otherskillb = 0 (as the skill letter b wasnt there)
if someone can help ill be very gratefull.
thankyou guys. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sat Mar 12, 2005 5:50 pm |
Code: |
#TRIGGER {(%d)h, (%d)m (*)~((*)~)} {health=%1
mana=%2
hidden=%if("%4"="[{-}]",1,0)
equilibrium=%if(%pos("e","%3"),1,0)
otherskilla=%if(%pos("a","%3"),1,0)
otherskillb=%if(%pos("b","%3"),1,0)
} "" {prompt} |
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
adamwalker Apprentice
Joined: 12 Mar 2005 Posts: 195
|
Posted: Tue Mar 15, 2005 7:17 pm thankyou |
excellent fix! thankyou for that!!!
:) |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|