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


Joined: 21 May 2020
Posts: 26
Location: The Netherlands

PostPosted: Fri Sep 09, 2022 10:02 pm   

ZMUD enable class from trigger
 
How do i enable a class and disable it again 10 seconds later?

Like my trigger is: Your limbs become less nimble as your movements lose their fluidity.

and it will do something like

#CLASS failures 1
cast adroitness
#WAITFOR {Your movements become more fluid and nimble.} 10000
#CLASS failures 0

and the failures class has all triggers to do ! for a spellfailure, so it would keep trying to cast the spell till it succeeded for 10 seconds.
The #CLASS command doesnt work so whats the command to enable the class with all the triggers for failure messages to do ! in it?
To make it complicated there are 2 subclasses called failures in different branches of the classes tree. one is with capital f though.
Like spellup--failures and autopilot--fighting--Failures

Currently the trigger is in the class spellup with subclass failures, so that should be correct.

If this isnt going to work 100%, another way is to do it with MSDP and check the rounds left on adroitness spell,
if it is no more in the spelllist cast it again and you dont need the failure triggers to do ! (cast it again) anymore.
Whats your advice?
Reply with quote
shalimar
GURU


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

PostPosted: Sat Sep 10, 2022 3:39 pm   
 
#T+ classname

#T- classname

If you are using zMUD though, the #WAITs tends to hang the client for the duration of the wait.
You would need to use a named #ALARM

#ALARM "classToggler" +10 {#T- classname}
_________________
Discord: Shalimar#3679
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