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
ronen
Beginner


Joined: 07 Aug 2005
Posts: 18

PostPosted: Sun Nov 26, 2006 4:52 am   

complet noob need help making two scripts
 
Ok I first want to say thanks to who ever helps me do these two little scripts to make my life a little bit easier.

The first thing I would like have scripted would be a simple exp calculator that tell me how much exp i have gained ever time I type score [because whee you are fightning it dosn't let you know how much damage or exp you do or gain.]

the second one would be is how do i use the #loop command with a path that I want to slow walk with. [I already have a path that called pix1 but i don't know how to loop it after its finished slow walking so it repeats it self]

if you need more info please let me know thank :D
Reply with quote
Full Throttle
Wanderer


Joined: 07 Dec 2004
Posts: 65

PostPosted: Sun Nov 26, 2006 6:11 am   
 
This is the trigger I use on my mud:

#var score {0} {0}
#trigger {^You have (%d) unused experience points.$} {
#if ((@score != 0) and (%eval(%1-@score) != 0)) {
#sub {You have %1 unused experience points. ~(%eval(%1-@score)~)}}
#var score %1}

>score
You have 10 unused experience points.

>kill rat
A rat is dead! R.I.P.

>score
You have 20 unused experience points. (10)

>score
You have 20 unused experience points.
Reply with quote
ronen
Beginner


Joined: 07 Aug 2005
Posts: 18

PostPosted: Sun Nov 26, 2006 6:46 am   
 
dosn't work
this is what my score menu looks like

Level: 61
Hit Points : 998/998 (
( Race : Human
Stamina : 0/0 )
) Guild: Storm, level 269
Guild Points : 553/660 (
( Exp : 27630426
Total score : 951 )
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Nov 26, 2006 8:26 am   
 
You'll want to have something like

#trig {^~( Exp : (%d)}

then. Make sure you quote the bracket. Then change the #sub to:

#sub {~( Exp : %1 ~(%eval(%1-@score)~)}

and it should work fine.
Reply with quote
ronen
Beginner


Joined: 07 Aug 2005
Posts: 18

PostPosted: Mon Nov 27, 2006 12:12 am   
 
ok cool now can any one tell me how to loop a path please?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Nov 27, 2006 4:05 am   
 
#trigger {room name} {}
#condition {room description} {}
#condition {room exits} {}
#condition {prompt} {#slow .path-to-walk}

The above will keep you walking in circles forever, though, so we'll need more information if that's not exactly what you want to do.
_________________
EDIT: I didn't like my old signature
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