About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Feb 23, 2003 12:30 am   
 
In the trigger options, make sure that Trigger on Prompt is selected.

Kjata
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: 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
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Sun Feb 23, 2003 2:29 am   
 
yea um i dunno how that happened....opsie?

The Seaworthy
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net