|
Stormchoir Newbie
Joined: 07 Jun 2001 Posts: 7
|
Posted: Thu Apr 11, 2002 9:46 am
Prompt trigger |
I am trying to setup a set of triggers and aliases that will allow me to issue a command phrase in game to cause my spellcasters to trance up to full (regain mana) What I have at the moment is: Once I issue the command which is actually a trigger that sets things in motion. The first trigger will turn on a trigger class, firing a prompt trigger. The triggers work, the problem is they work a bit too well. Every time anything happens in the game, someone comes in the room I'm in, a mob enters, someone says something, etc. the trigger fires causing the caster to trance once for each time the prompt is issued from the mud by checking two variables that I set, currentmana and maxmana using an IF statement. The game also gives output which I trigger on to cause the IF statement to be checked and the caster to trance if necessary. Now aside from going to a quiter area (and I'm in a relativly quiet area)I've been trying to come up with a better way to have zmud check the two variables and act on them accordingly each time the caster trances. Just to give an idea, each time a character trances, you're lagged for abour 6 seconds. I'd like very much to cut down on any unnecessary tiem spent trancing so that it doesnt take 10 minutes to move on to the next task. I hope I've explaind this well enough. I could also post the triggers and alises I am using if it would help to decipher whats happening but I thought that I might be able to explain it better. Just say the word thou and I'll post them.
Thanks tons. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Apr 11, 2002 5:05 pm |
Obviously, this is not the ideal choice for a trigger. Perhaps you could come up with something better.
What (if anything) happens when a caster finishes trancing once? If there is something recognizable that won't happen UNTIL he's finished, use that for your trigger.
If there's nothing useful for a trigger right now, could you create something by stacking commands? (trance;say finished trancing, check my mana)
If you can't come up with a useful trigger, try using an alarm (#ALARM) that won't expire until your caster has had enough time to finish a trance.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
SHASCO Novice
Joined: 29 May 2001 Posts: 48 Location: USA
|
Posted: Thu Apr 11, 2002 11:38 pm |
Cut and paste your pompt here?
|
|
|
|
|
|
|
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
|
|