Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
Solinari
Newbie


Joined: 05 Aug 2005
Posts: 2

PostPosted: Fri Aug 05, 2005 11:12 pm   

StatusBar (Medievia)
 
Summary

StatusBar displays a series of flags on your status bar to show you which spells are
currently affecting you. The spells are grouped and color coded by type, and each group has a corresponding macro to cast all the spells in the group. Stone skin will only be cast if you are a mage, and protection from good/evil will not be cast if you are neutral. For this and many more scripts, please visit my web site at http://solinari.freeshell.org/.

Flags

I : invisibility
A : armor
S : shield
S : stone skin
P : protection
B : bless
D : detect invisibility
S : sense life
I : infravision
L : levitate
Q : quickness
B : breathe water
S/F/I : sanctuary/fireshield/iceshield
#/M : phantasmal images/malediction
M : manashield

Macros

f1 : cast invisibility
f2 : cast armor, shield, stone skin, protection, and bless
f3 : cast detect invisiblity, sense life, and infravision
f4 : cast levitate, quickness, and breathe water
f5 : cast sanctuary
f6 : cast fireshield
f7 : cast phantasmal images
f8 : cast manashield

Code:

#CLASS {StatusBar}
#ALIAS resetbar {#var InvisFlag { };#var ArmorFlag { };#var ShieldFlag { };#var StoneFlag { };#var ProtectionFlag { };#var BlessFlag { };#var DetectFlag { };#var SenseFlag { };#var InfraFlag { };#var LevitateFlag { };#var QuickFlag { };#var BreatheFlag { };#var SancFireFlag { };#var ManaFlag { };#var ImageMalFlag { };#var ImageCount {0}}
#VAR Alignment {0}
#VAR ArmorFlag {}
#VAR BlessFlag {}
#VAR BreatheFlag {}
#VAR CurrentClass {0}
#VAR DetectFlag {}
#VAR ImageCount {0}
#VAR ImageMalFlag {}
#VAR InfraFlag {}
#VAR InvisFlag {}
#VAR LevitateFlag {}
#VAR ManaFlag {}
#VAR ProtectionFlag {}
#VAR QuickFlag {}
#VAR SancFireFlag {}
#VAR SenseFlag {}
#VAR ShieldFlag {}
#VAR StoneFlag {}
#TRIGGER {Armor               : Duration} {#var ArmorFlag {A}}
#TRIGGER {Bless               : Duration} {#var BlessFlag {B}}
#TRIGGER {Breathe Water       : Duration} {#var BreatheFlag {B}}
#TRIGGER {Detect Invisibility : Duration} {#var DetectFlag {D}}
#TRIGGER {Fireshield          : Duration} {#var SancFireFlag {F}}
#TRIGGER {Iceshield           : Duration} {#var SancFireFlag {I}}
#TRIGGER {Infravision         : Duration} {#var InfraFlag {I}}
#TRIGGER {Invisibility        : Duration} {#var InvisFlag {I}}
#TRIGGER {Levitate            : Duration} {#var LevitateFlag {L}}
#TRIGGER {Malediction         : Duration} {#var ImageMalFlag {M}}
#TRIGGER {Manashield          : Duration} {#var ManaFlag {M}}
#TRIGGER {Phantasmal Images   : Duration - * ticks, (%d) image} {#var ImageCount {%1};#var ImageMalFlag {%1}}
#TRIGGER {Protection from Evil: Duration} {#var ProtectionFlag {P}}
#TRIGGER {Protection from Good: Duration} {#var ProtectionFlag {P}}
#TRIGGER {Quickness           : Duration} {#var QuickFlag {Q}}
#TRIGGER {Sanctuary           : Duration} {#var SancFireFlag {S}}
#TRIGGER {Sense Life          : Duration} {#var SenseFlag {S}}
#TRIGGER {Shield              : Duration} {#var ShieldFlag {S}}
#TRIGGER {Stone Skin          : Duration} {#var StoneFlag {S}}
#TRIGGER {convulses in pain as you land a powerful backstab.} {#var InvisFlag { }}
#TRIGGER {makes a strange sound but is suddenly very silent} {#var InvisFlag { }}
#TRIGGER {turns * head, noticing you.} {#var InvisFlag { }}
#TRIGGER {A deep red shield of fire surrounds you.} {#var SancFireFlag {F}}
#TRIGGER {A divine force takes pity on your wretched existence} {resetbar}
#TRIGGER {A glowing white aura surrounds your body.} {#var SancFireFlag {S}}
#TRIGGER {A spectral image of a raven emerges from your body, flying away.} {#var BlessFlag { }}
#TRIGGER {A spectral raven emerges from your body, forced out by magic.} {#var BlessFlag { }}
#TRIGGER {A suit of ethereal armor appears on you and slowly vanishes.} {#var ArmorFlag {A}}
#TRIGGER {A whirling cloud of ice shards forms around you.} {#var SancFireFlag {I}}
#TRIGGER {Adversary Preparation Room - type ENTER to join the fun!} {score s;score a}
#TRIGGER {At the demon's gesture, * suddenly revived} {resetbar}
#TRIGGER {At this moment we have * rooms and * zones} {score s;score a}
#TRIGGER {attack has destroyed one of your illusionary images.} {#var ImageCount {%eval(@ImageCount-1)};#if {@ImageCount>0} {#var ImageMalFlag {@ImageCount}} {#var ImageMalFlag { }}}
#TRIGGER {dodges your attack.} {#var InvisFlag { }}
#TRIGGER {finds a chink in *'s defenses} {#var InvisFlag { }}
#TRIGGER {finds its true mark as you stab at *'s back} {#var InvisFlag { }}
#TRIGGER {lands slightly off-target as you stab at *'s back.} {#var InvisFlag { }}
#TRIGGER {Level * Cleric * Age: * years} {#var Alignment {1};#var CurrentClass {1}}
#TRIGGER {Level * Mage * Age: * years} {#var Alignment {1};#var CurrentClass {2}}
#TRIGGER {Level * Thief * Age: * years} {#var Alignment {1};#var CurrentClass {3}}
#TRIGGER {Level * Warrior * Age: * years} {#var Alignment {1};#var CurrentClass {3}}
#TRIGGER {parries your attack.} {#var InvisFlag { }}
#TRIGGER {Reconnecting.} {score a}
#TRIGGER {Several illusionary images, duplicates of yourself, appear around you.} {#var ImageMalFlag {P};score a}
#TRIGGER {tears through *'s defenses and plunges into * back.} {#var InvisFlag { }}
#TRIGGER {The battle distracts you, and the black aura dissipates.} {#var ImageMalFlag { }}
#TRIGGER {The black aura around your body dissipates.} {#var ImageMalFlag { }}
#TRIGGER {The black aura dissipates.} {#var ImageMalFlag { }}
#TRIGGER {The detect invisible wears off.} {#var DetectFlag { }}
#TRIGGER {The spectral image of a raven soars down from the Heavens, disappearing into you} {#var BlessFlag {B}}
#TRIGGER {The white aura around your body fades.} {#var SancFireFlag { }}
#TRIGGER {Unlife floods your veins, and you clamber to your feet, ready to search for your soul.} {score a}
#TRIGGER {With unbelievable luck, * moves away just as you slash at * back.} {#var InvisFlag { }}
#TRIGGER {You annihilate} {#var InvisFlag { }}
#TRIGGER {You are affected by:} {resetbar}
#TRIGGER {You are almost evil} {#var Alignment {0}}
#TRIGGER {You are almost good} {#var Alignment {0}}
#TRIGGER {You are neutral} {#var Alignment {0}}
#TRIGGER {You are not affected by any enchantment.} {resetbar}
#TRIGGER {You are surrounded by a strong magical force shield.} {#var ShieldFlag {S}}
#TRIGGER {You attempt to stab * in the back, but your thrust is partially deflected} {#var InvisFlag { }}
#TRIGGER {You barely touch} {#var InvisFlag { }}
#TRIGGER {You begin to chant, and a black aura forms around you.} {#var ImageCount {0};#var ImageMalFlag {M}}
#TRIGGER {You bruise} {#var InvisFlag { }}
#TRIGGER {You can no longer see in the dark.} {#var InfraFlag { }}
#TRIGGER {You decimate} {#var InvisFlag { }}
#TRIGGER {You demolish} {#var InvisFlag { }}
#TRIGGER {You depart from Adversary.} {score s;score a}
#TRIGGER {You devastate} {#var InvisFlag { }}
#TRIGGER {You don't feel lighter than air any more.} {#var LevitateFlag { }}
#TRIGGER {You don't feel so well protected.} {#var ArmorFlag { }}
#TRIGGER {You draw blood from} {#var InvisFlag { }}
#TRIGGER {You feel exposed.} {#var InvisFlag { }}
#TRIGGER {You feel less aware of your surroundings.} {#var SenseFlag { }}
#TRIGGER {You feel less in touch with living things.} {#var SenseFlag { }}
#TRIGGER {You feel less morally protected.} {#var ProtectionFlag { }}
#TRIGGER {You feel less perceptive.} {#var DetectFlag { }}
#TRIGGER {You feel less protected.} {#var ArmorFlag { }}
#TRIGGER {You feel life return to your body} {resetbar}
#TRIGGER {You feel more vulnerable.} {#var ProtectionFlag { }}
#TRIGGER {You feel the power of vile darkness surge through your body!} {#var ProtectionFlag {P}}
#TRIGGER {You feel the protective veil of darkness vanish.} {#var ProtectionFlag { }}
#TRIGGER {You feel your awareness improve.} {#var SenseFlag {S}}
#TRIGGER {You feel your stamina increase greatly.} {#var QuickFlag {Q}}
#TRIGGER {You feel yourself exposed.} {#var InvisFlag { }}
#TRIGGER {You focus and send a deadly blast of power at *.} {#var ImageMalFlag { };#var InvisFlag { }}
#TRIGGER {You gasp and breathe in deeply as you feel your lungs harden and heat up!} {#var BreatheFlag {B}}
#TRIGGER {You glow with a pulsating, white light for a few moments.} {#var ProtectionFlag {P}}
#TRIGGER {You have been KILLED!!} {score a}
#TRIGGER {You hear the call of the land, far off in the distance} {resetbar}
#TRIGGER {You hit} {#var InvisFlag { }} "" {line=10}
#TRIGGER {You horribly maim} {#var InvisFlag { }}
#TRIGGER {You injure} {#var InvisFlag { }}
#TRIGGER {You maim} {#var InvisFlag { }}
#TRIGGER {You make yourself more visible to the people around you.} {#var InvisFlag { }}
#TRIGGER {You mangle} {#var InvisFlag { }}
#TRIGGER {You massacre} {#var InvisFlag { }}
#TRIGGER {You miss} {#var InvisFlag { }} "" {line=10}
#TRIGGER {You mutilate} {#var InvisFlag { }}
#TRIGGER {You obliterate} {#var InvisFlag { }}
#TRIGGER {You plunge * into the back of *.} {#var InvisFlag { }}
#TRIGGER {You pulverize} {#var InvisFlag { }}
#TRIGGER {You scratch} {#var InvisFlag { }} "" {line=10}
#TRIGGER {You slowly vanish from normal vision.} {#var InvisFlag {I}}
#TRIGGER {You viciously rend} {#var InvisFlag { }}
#TRIGGER {You wake up with a splitting headache} {resetbar}
#TRIGGER {You wound} {#var InvisFlag { }}
#TRIGGER {Your * annihilates} {#var InvisFlag { }}
#TRIGGER {Your * barely touches} {#var InvisFlag { }}
#TRIGGER {Your * bruises} {#var InvisFlag { }}
#TRIGGER {Your * decimates} {#var InvisFlag { }}
#TRIGGER {Your * demolishes} {#var InvisFlag { }}
#TRIGGER {Your * devastates} {#var InvisFlag { }}
#TRIGGER {Your * draws blood from} {#var InvisFlag { }}
#TRIGGER {Your * hits} {#var InvisFlag { }}
#TRIGGER {Your * horribly maims} {#var InvisFlag { }}
#TRIGGER {Your * injures} {#var InvisFlag { }}
#TRIGGER {Your * maims} {#var InvisFlag { }}
#TRIGGER {Your * mangles} {#var InvisFlag { }}
#TRIGGER {Your * massacres} {#var InvisFlag { }}
#TRIGGER {Your * misses} {#var InvisFlag { }}
#TRIGGER {Your * mutilates} {#var InvisFlag { }}
#TRIGGER {Your * obliterates} {#var InvisFlag { }}
#TRIGGER {Your * pulverizes} {#var InvisFlag { }}
#TRIGGER {Your * scratches} {#var InvisFlag { }}
#TRIGGER {Your * smites} {#var InvisFlag { }}
#TRIGGER {Your * viciously rends} {#var InvisFlag { }}
#TRIGGER {Your * wounds} {#var InvisFlag { }}
#TRIGGER {Your clumsy attempt at a backstab barely hurts * at all} {#var InvisFlag { }}
#TRIGGER {Your endurance returns to normal.} {#var QuickFlag { }}
#TRIGGER {Your eyes glow dimly for a few seconds.} {#var DetectFlag {D}}
#TRIGGER {Your eyes glow red for a moment.} {#var InfraFlag {I}}
#TRIGGER {Your feet rise up off the ground.} {#var LevitateFlag {L}}
#TRIGGER {Your force shield shimmers then fades away.} {#var ShieldFlag { }}
#TRIGGER {Your grip on * slips, and its tip only finds *'s shoulder blades.} {#var InvisFlag { }}
#TRIGGER {Your ice shield melts.} {#var SancFireFlag { }}
#TRIGGER {Your iceshield melts into a puddle.} {#var SancFireFlag { }}
#TRIGGER {Your illusionary doubles vanish.} {#var ImageCount {0};#var ImageMalFlag { }}
#TRIGGER {Your illusionary duplicates vanish with a bright spark of energy.} {#var ImageCount {0};#var ImageMalFlag { }}
#TRIGGER {Your levitation wears off.} {#var LevitateFlag { }}
#TRIGGER {Your lungs feel like they are on fire as the breathe water spell wears off.} {#var BreatheFlag { }}
#TRIGGER {Your lungs heave and you cough water.} {#var BreatheFlag { }}
#TRIGGER {Your magical energy expands and hardens into a crackling blue shield} {#var ManaFlag {M}}
#TRIGGER {Your magical shield has been dispelled.} {#var ShieldFlag { }}
#TRIGGER {Your Mana Shield crackles, shrinks momentarily and dissipates.} {#var ManaFlag { }}
#TRIGGER {Your Mana Shield cracks and pops out.} {#var ManaFlag { }}
#TRIGGER {Your mana shield flickers and dies.} {#var ManaFlag { }}
#TRIGGER {Your manashield crackles and fizzles out.} {#var ManaFlag { }}
#TRIGGER {Your protective veil of darkness has been shattered.} {#var ProtectionFlag { }}
#TRIGGER {Your shield of fire collapses.} {#var SancFireFlag { }}
#TRIGGER {Your shield of fire slowly dissipates....and blinks out.} {#var SancFireFlag { }}
#TRIGGER {Your sight grows dimmer.} {#var InfraFlag { }}
#TRIGGER {Your skin does not feel as hard as it used to.} {#var StoneFlag { }}
#TRIGGER {Your skin feels like stone no longer.} {#var StoneFlag { }}
#TRIGGER {Your skin turns to a stone-like substance.} {#var StoneFlag {S}}
#TRIGGER {Your supercharged bolt of pure magic shatters * into sparkling motes of dust} {#var ImageMalFlag { };#var InvisFlag { }}
#TRIGGER {Your vision becomes blurred for a few moments then returns to normal.} {#var DetectFlag {D};#var SenseFlag {S}}
#TRIGGER {Your white aura flashes brightly and disappears.} {#var SancFireFlag { }}
#KEY F1 {c inv}
#KEY F2 {c arm;c shield;#if {@CurrentClass=2} {c stone};#if {@Alignment=1} {c prot};c bless}
#KEY F3 {c detect inv;c sense;c infra}
#KEY F4 {c lev;c qui;c breathe}
#KEY F5 {c sanc}
#KEY F6 {c firesh}
#KEY F7 {c phant}
#KEY F8 {c mana}
#STAT {%ansi(bold,blue)Status: %ansi(bold,cyan)@InvisFlag%ansi(bold,magenta)@ArmorFlag@ShieldFlag@StoneFlag@ProtectionFlag@BlessFlag%ansi(bold,brown)@DetectFlag@SenseFlag@InfraFlag%ansi(bold,green)@LevitateFlag@QuickFlag@BreatheFlag%ansi(bold,red)@SancFireFlag@ImageMalFlag@ManaFlag}
#CLASS 0


Last edited by Solinari on Mon Mar 19, 2007 9:31 pm; edited 3 times in total
Reply with quote
Kinjo
Newbie


Joined: 27 Aug 2005
Posts: 2

PostPosted: Sat Aug 27, 2005 6:10 pm   
 
this status bar doesn't seem to be working with the free version of zmud, any idea why?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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