 |
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: Sun Feb 23, 2003 12:12 am
Prompts |
My prompt looks like this
2211h, 2094m ex-
Ive got a trigger to match it since I cant use SETPROMPT, but if the prompt is on the very bottom line of my MUD output it doesnt trigger, untill the next line comes in and moves 2211h, 2094m ex- up at least one line, then it triggers, well in the case of my auto heal script this could be too late, any help is appreciated.
The Seaworthy |
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Feb 23, 2003 12:30 am |
In the trigger options, make sure that Trigger on Prompt is selected.
Kjata |
|
|
 |
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: Sun Feb 23, 2003 12:54 am |
@currhp = %1
@currmana = %2
#MATH minus @maxhp / 4
#MATH healhp @maxhp - @minus
#IF (@currhp <= @healhp) {drink health}
why doesnt this work? What I want to happen is to drink health at 75% hps, instead its going crazy *grin*
The Seaworthy |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Feb 23, 2003 1:32 am |
quote:
@currhp = %1
@currmana = %2
#MATH minus @maxhp / 4
#MATH healhp @maxhp - @minus
#IF (@currhp <= @healhp) {drink health}
why doesnt this work? What I want to happen is to drink health at 75% hps, instead its going crazy *grin*
The Seaworthy
I assume this is part of your prompt trigger? If so, you need to use a counter or something, because you're likely to remain under 75% for more than one drink.
li'l shmoe of Dragon's Gate MUD |
|
|
 |
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: Sun Feb 23, 2003 2:04 am |
I realize that Ive got that handled my point is the above trigger doesnt fire correctly, it fires all the time not just when i drop below 75 % so what wrong with that part? Thanks for any help
The Seaworthy |
|
|
 |
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: Sun Feb 23, 2003 2:29 am |
yea um i dunno how that happened....opsie?
The Seaworthy |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Feb 23, 2003 3:10 am |
You can delete your own posts.
Your #MATH commands don't work because #MATH (like many commands) uses spaces as field delimiters.
wrong -- #MATH minus @maxhp / 4
right -- #MATH minus {@maxhp / 4}
LightBulb
Advanced Member |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Feb 23, 2003 3:31 am |
quote:
@currhp = %1
@currmana = %2
#MATH minus @maxhp / 4
#MATH healhp @maxhp - @minus
#IF (@currhp <= @healhp) {drink health}
why doesnt this work? What I want to happen is to drink health at 75% hps, instead its going crazy *grin*
The Seaworthy
The parts in red need to be removed. Unless you are intentionally trying to make an indirect assignment, which doesn't seem to be the case. |
|
|
 |
|
|