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
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Sun Jan 13, 2002 12:03 pm   

character "deffing-up" script, for Achaea
 
This isn't really difficult, in fact it hardly belongs here. But lots of people ask about it on Achaea so I'm posting it here so I can just point them over here instead of explaining it. What it does is...you type "startup", and it fully deffs up your character for you (not herbs and salves).

#CLASS general
#VARIABLE startup {embrace spirit|bond spirit|barkskin|fitness|...etc etc...|vitality|"#T- startup"}
#ALIAS startup {
target nothing
parry head
morph jaguar
resistance
nightsight
morph wyvern
summon fire
insomnia
(and any other deffs that dont require balance)
deffcount=0
#T+ startup
#EXEC %item(@startup,@deffcount)
}
#CLASS {general|startup}
#TRIGGER {recovered} {
#ADD deffcount 1
#EXEC %item(@startup,@deffcount)
}
#TRIGGER {Your skin is already tough as bark} {
#ADD deffcount 1
#EXEC %item(@startup,@deffcount)
}
and any other triggers for thigns that might pause the deffing up, with the same command.
#CLASS 0

I hope I wrote it all in right *g*. If not I'll just have to edit it I suppose.

Caled
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Sat Jul 29, 2006 3:07 am   
 
Here's a better version of the above deffing up script. I'm a little better at scripting than I was back then. Obviously this is a deffing script for a different class, but thats not the point. The point is it works better.

#ALIAS chanall {chanStep=1
#T+ chanAll
chanList={sim|chspirit|fair|fwater|ffire|fearth|fspirit|bair|bwater|bfire|bearth|bspirit}
#EXECUTE %item( @chanList, @chanStep)
#ADD chanStep 1}

#CLASS {chanAll}
#TRIGGER {You have regained your mental equilibrium.} {#EXECUTE %item( @chanList, @chanStep)
#ADD chanStep 1
#IF (%eval( @chanStep>%numitems( @chanList))) {#T- chanAll}}
#CLASS 0
_________________
Athlon 64 3200+
Win XP Pro x64
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