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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Robotorator
Newbie


Joined: 02 Mar 2002
Posts: 4
Location: USA

PostPosted: Sat Mar 02, 2002 7:14 pm   

script help
 
Hey.
I was wondering if anyone could help me make a script for the LPMud I play, StickMUD. My primary attack is called "smash" because I'm a fighter. The smash attack has 4 messages that it displays, ranging from missing to critical hits. I was wondering if anyone could help me make a script that would count each type of hit I do, and, when I input a command, show me how many of each I have done. Any help will be appreciated. Thanks.

_Robotorator_
-It's a better way to feel; don't be real - be post-modern- Idlewild


_Robotorator_
-It's a better way to feel; don't be real - be post-modern- Idlewild
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Sat Mar 02, 2002 9:39 pm   
 
You'll have to post an example of each kind of attack's text so we can make the right triggers, but it's possible and not even all that difficult.



zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
Robotorator
Newbie


Joined: 02 Mar 2002
Posts: 4
Location: USA

PostPosted: Sat Mar 02, 2002 10:12 pm   
 
Here they are -
1.
You smash Salesman with your mithril club.

2. You try to smash Salesman with your mithril club, but only manage to give him a
big bruise.

3. You perform a beautiful smash and land on the ground your nose first!

I don't have the 4th on log, they are kind of rare critical hits. Anyway, there ya go.


_Robotorator_
-It's a better way to feel; don't be real - be post-modern- Idlewild
Reply with quote
EdwinDroom
Wanderer


Joined: 25 Jan 2002
Posts: 77
Location: Ireland

PostPosted: Sun Mar 03, 2002 6:21 am   
 
Set up 3 variables - names can be changed to whatever

#VA smashcount 0
#VA bruisecount 0
#VA nosecount 0

Then the 3 triggers:
#TR {You smash (*) with your (*)} {#AD smashcount 1}
#TR {You try to smash (*) with your (*) but only manage to give him a big bruise.} {#AD bruisecount 1}
#TR {You perform a beautiful smash and land on the ground your nose first!} {#AD nosecount 1}

and finally aliases
#ALIAS {showsmash} {#SHOW @smashcount}
#ALIAS {showbruise} {#SHOW @bruisecount}
#ALIAS {shownose} {#SHOW @nosecount}

Should work...

All the best freaks are here, please stop staring at me
Reply with quote
Robotorator
Newbie


Joined: 02 Mar 2002
Posts: 4
Location: USA

PostPosted: Sun Mar 03, 2002 6:49 am   
 
thanks alot for all the help. one extra question - how woudl i make an alias that would display something like
Bruises: #
Smashes: #
Noses: #

_Robotorator_
-It's a better way to feel; don't be real - be post-modern- Idlewild
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sun Mar 03, 2002 8:41 am   
 
#ALIAS {showall} {#SHOW Bruises: @bruisecount;#SHOW Smashes: @smashcount;#SHOW Noses: @nosecount}

There ya be.


TonDiening
Beta Upgrading to 6.26
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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