|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Wed Jul 14, 2004 4:09 am
Trying to get help on a autoprac trigger |
I am trying to make a trigger that would continue casting a spell till my mana would run out this is my current amount of hp/mana/mv
2852hp 2913m 832mv>
And I want it to to stop when it says
"You haven't the energy to cast that spell"
and move west from that and wait till the healers regen the mana then when regened go east
Any ideas?
Thanks in advance for any ideas |
|
|
|
complex Apprentice
Joined: 12 Apr 2004 Posts: 134 Location: USA
|
Posted: Wed Jul 14, 2004 4:15 am |
is there a statement from your mud that shows up when your mana is regened?
|
|
|
|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Wed Jul 14, 2004 5:21 am |
quote: Originally posted by complex
is there a statement from your mud that shows up when your mana is regened?
no but the stats would be back to
2852hp 2913m 832mv> again |
|
|
|
Frahg Newbie
Joined: 02 Aug 2001 Posts: 7
|
Posted: Wed Jul 14, 2004 2:14 pm |
#ALARM "castSpell" {1} {cast Spell}
#TRIGGER {You haven't the energy to cast that spell.} {#ALARM "castSpell" {1} {stat};w}
#TRIGGER {^2852hp 2913m 832mv~>} {e;#ALARM "castSpell" {1} {cast Spell}} "" {nocr|prompt}
-----------------
The alarm casts the spell once a second, in order to eventually run you out of mana. If the 1 second duration is too short, change it.
The first trigger notices you've run out of mana, recreates the ALARM to now run an unintrusive command (in this case 'stat') every second to make sure you get a new prompt.
Once your prompt reads your max stats you will go e and recreate the ALARM yet again to start casting the spell. Then the process starts all over again.
NOTE: If you want to change duration you have to change it in 3 places, the alarm, trigger 1 and trigger 2. You could set a variable for duration, but that's only if you intend to change it often. Otherwise, it's fine the way it is.
Frahg |
|
|
|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Thu Jul 15, 2004 4:31 am |
cool thanks alot that will work perfectly
now I can max my stats out quickly
thanks |
|
|
|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Thu Jul 15, 2004 4:05 pm |
question how would you add a var list where when you move back to heal it checks to see if that spell is maxed out ie prac (spell) and if it hits max IE
armor 90(that is when it is maxed)
bless 87(that is when it is maxed)
any ideas? |
|
|
|
|
|