|
ronen Beginner
Joined: 07 Aug 2005 Posts: 18
|
Posted: 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 |
|
|
|
Full Throttle Wanderer
Joined: 07 Dec 2004 Posts: 65
|
Posted: 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. |
|
|
|
ronen Beginner
Joined: 07 Aug 2005 Posts: 18
|
Posted: 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 ) |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
ronen Beginner
Joined: 07 Aug 2005 Posts: 18
|
Posted: Mon Nov 27, 2006 12:12 am |
ok cool now can any one tell me how to loop a path please?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|