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
denniscjr
Newbie


Joined: 27 May 2006
Posts: 6
Location: Maryland, USA

PostPosted: Sat May 27, 2006 1:07 am   

Command help for a Trigger
 
Ok I will try to explain this as best as possible. I play IgorMUD, in Igor there are multiattackers which are mobs that can attack more than once per round. I have a trigger set so when it sees that a current value (Action Points) is below 50 it does a command to fill that value back up. Problem is when I have less than 50 and a multiattack comes around I waste alot of the items I use to rejuvinate that value because the trigger gets set off multiple times. I know a maccro would fix this but I depend greatly on that value so a macro wouldn't be efficient enough. I'm trying to find another way to do this or find a command so that it will do the value once and thats it... maybe a way to make it so the value can only be excuted once per second so it will make sure it only does it once or a break command to stop it from doing it again etc. I have pasted the trigger to help visually.

Pattern: HP: %1 %2 %3 %4 %5 %6 %7 %8

Value: #IF (%7 < 50) {get picture from backpack;lick picture}
Reply with quote
denniscjr
Newbie


Joined: 27 May 2006
Posts: 6
Location: Maryland, USA

PostPosted: Sat May 27, 2006 1:20 am   
 
Posting more visual help:

Ruddy Oak hits you very hard.
HP: 355 (426) SP: 0 (0) AP: 29 (264)
get picture from backpack
lick picture
You deflect some of the blow from your vital areas.
Ruddy Oak hits you hard.
HP: 348 (426) SP: 0 (0) AP: 29 (264)
get picture from backpack
lick picture
Ruddy Oak misses you.
Ruddy Oak massacres you!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Sat May 27, 2006 6:50 am   
 
the %1-99 should be used in the value of the trigger, not the pattern

use %w, %d, ect for the pattern, see the 'wild cards' help file for more info

#TR {HP: (%d) ~((%d)~) SP: (%d) ~((%d)~) AP: (%d) ~((%d))} {#IF (%5<50) {get picture from backpack;lick backpack}}
_________________
Discord: Shalimarwildcat
Reply with quote
Petrograd
Novice


Joined: 08 Dec 2005
Posts: 35
Location: Sweden

PostPosted: Sat May 27, 2006 6:59 am   
 
Put the trigger in a class, use #T+ and #T-. That way you can stop it from firing over and over again
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sat May 27, 2006 1:43 pm   
 
you didnt show if it says anything after you "LICK PICTURE" to regen ap.

If it has a "you lick your picture and feel stronger" type message then use that message to turn on the class again this will keep it from firing multiple times until it has successfully completed the first one.
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
denniscjr
Newbie


Joined: 27 May 2006
Posts: 6
Location: Maryland, USA

PostPosted: Sat May 27, 2006 4:24 pm   
 
Thanks a ton guys! I figured it all out and its working like a charm!
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