my hp prompt is catching the variables,
but when i go to display them, it shows the last value
of the variable...
i.e. HP: 208/208 Ftg: 61/61 MP: 22/22
( I cast a spell )
HP: 208/208 Ftg: 61/61 MP: 12/22
but the send function sends the first values..
any ideas?
trig value:
^HP\: (.*?)\/(.*?) Ftg\: (.*?)\/(.*?) MP\: (.*?)\/(.*?)$
script:
SetVariable ("hp","%1")
SetVariable ("maxhp","%2")
SetVariable ("ftg","%3")
SetVariable ("maxftg","%4")
SetVariable ("mana","%5")
SetVariable ("maxmana","%6")
Send ("'@hp @maxhp")
Send ("'@ftg @maxftg")
Send ("'@mana @maxmana")
should i be using setVariable for this?
p.s. the line I am capturing is hilighted in ansi from the mud...
Thanx for any help,
K.
but when i go to display them, it shows the last value
of the variable...
i.e. HP: 208/208 Ftg: 61/61 MP: 22/22
( I cast a spell )
HP: 208/208 Ftg: 61/61 MP: 12/22
but the send function sends the first values..
any ideas?
trig value:
^HP\: (.*?)\/(.*?) Ftg\: (.*?)\/(.*?) MP\: (.*?)\/(.*?)$
script:
SetVariable ("hp","%1")
SetVariable ("maxhp","%2")
SetVariable ("ftg","%3")
SetVariable ("maxftg","%4")
SetVariable ("mana","%5")
SetVariable ("maxmana","%6")
Send ("'@hp @maxhp")
Send ("'@ftg @maxftg")
Send ("'@mana @maxmana")
should i be using setVariable for this?
p.s. the line I am capturing is hilighted in ansi from the mud...
Thanx for any help,
K.