|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: Fri Dec 28, 2001 1:05 am
Fire a trigger if a is missing |
Hi,
My character is usually affected by a lot of beneficial spells. Occassionally some spells are missing because I have been dispelled in combat without noticing.
I therefore would like to write a trigger that automatically re-wear certain eq if a spell is missing from my "affected list".
For example, if I type "affected" to find out which spells I'm affect by and "Spell: Sanctuary" is missing from that list I'd like a trigger to kick in and re-wear overlord armor.
Any help much appreciated!
Mud tex pasted below:
---------------------
You are affected by the following:
Racial effects: haste detect-hidden
* You are resistant to: magic paralysis.
* You are vulnerable to: water.
Spell: armor - Level 206, modifies ar by 3 for 55 minutes.
Spell: levitation - Level 211, modifies none by 0 for 98 minutes.
Spell: bless - Level 216, modifies saving-spell by 4 for 103 minutes.
Spell: fireshield - Level 223, modifies none by 0 for 14 minutes.
Spell: detect invisibilit - Level 180, modifies none by 0 for -1 minutes.
Spell: sanctuary - Level 80 , modifies none by 0 for -1 minutes.
Total of 6 magical affects. |
|
|
|
Blerghass Beginner
Joined: 25 Nov 2001 Posts: 26 Location: USA
|
Posted: Fri Dec 28, 2001 1:30 am |
Maybe something like this would work:
#trig {You are affected by the following} {#var tempstat 0}
#trig {Spell: sanctuary} {#var tempstat 1}
#trig {Total of * magical affects} {#if (@tempstat = 0) {wear overlord armor}}
P.S. Shouldn't it be "effects", not "affects", in the last line? |
|
|
|
|
|
|
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
|
|