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
Pagan
Beginner


Joined: 23 Feb 2001
Posts: 21
Location: South Africa

PostPosted: Mon Jun 10, 2002 1:19 am   

need help x2
 
First problem
Ok, i been trying to get someting right for a while now
and i havent had much success. Im trying to count a trigger, and
its been shown a certain ammount of time, i get a message displayed.

The output from the Mud is as follows:

Your blackened mask bursts into raging flames.

when that has been shown 25 times, i want a message to tell me that
the mask has hit its limit, and i need to remove it before
it explodes in my face.

so in effect, i cast the spell 25 times and then get a message displayed
on my status bar telling me its time to remove the mask or i get crispy.


Second problem:
I want a similar trigger set as above, but to do the math on a different
item. a golden ring. the ring can be used 5 times before its useless.
but if only used 4 separate times, it can recharge back to 5.

when used the message is:

Your Golden Ring glows momentarily.

when it re-charges the message is:

The Golden Ring feels warmer on your finger.

Use a charge - ring glows
recharge - ring feels warmer

if that makes sense.
what im looking for with this is a counter of sorts which displays
on the status bar, starting at 5.
when a charge is used, it subtracts one from the available charges.
when it recharges, it adds one to the available charges.

this should be able to be reset to 5 with use of a simple alias.

Thanks


Pagan
Chaos, Panic, Disorder, my work here is done.
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Mon Jun 10, 2002 1:44 am   
 
For the first one use this:

#VAR maskcount {}
#TRIGGER {Your blackened mask bursts into raging flames} {#ADD maskcount 1;#IF (@maskcount>=25) {remove mask}}

For the second one you need this:
#VAR chargecount {5} {5}
#TR {Your Golden Ring glows momentarily.} {#ADD chargecount -1}
#TR {The Golden Ring feels warmer on your finger.} {#ADD chargecount 1}
#ST @chargecount

Also, if you want to change it back to 5 manually just type:
chargecount= 5

All of this is meant to be cut and paste line by line to the command line.
Reply with quote
Pagan
Beginner


Joined: 23 Feb 2001
Posts: 21
Location: South Africa

PostPosted: Mon Jun 10, 2002 1:58 am   
 
ok, thanks, the ring one works perfectly :)

the mask one on the otherhand.
a) MUD i play on doesnt allow action triggers
b) once it gets to 25, everytime i cast the spell, the trigger fires, and
i remove the mask.

easily solved though, added an alias for maskcount= 0, added a line to the
status bar and replaced the remove trigger with a message.

would prefer a simpler solution, but this one works fine

thanks
P

Pagan
Chaos, Panic, Disorder, my work here is done.
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