|
Hawkwing Newbie
Joined: 12 Oct 2002 Posts: 9 Location: Sweden
|
Posted: Sun Oct 13, 2002 8:27 am
Heres is a new challenge, or old... |
Ok, I have tried out the random rooms but I cant get it to be configured on the mud I am playing.
Heres the thing, I am standing in the middle of a room, I got 4 rooms, one in eash direction, east, west,south,north.
I want to, on random, go into one of those rooms, kill the mob(which btw is called mobile) and when done I want to return to the center room(the rooms I am standing in).
The layout is this:
R
RNR
R
I want to start in the N room and go into each one of those rooms, and if there is no mob in that room I want to return to the N room again and try another direction.
I also want to start when I have full hp and sleep after a fight in the N room when I have less than 100 in hp.
the prompt looks like:
[1175/1355hp 721/721en]
when there is no mobs it says:
They aren't here.
Exits looks like [Exits: east south west]
but with the North added to the text...
I thank you for any suggestions how to solve this since I have tried maging an trigger and alias that will go into a kild of a : n,e,kill mobile,s,w,kill mobile etc etc and that like tends to be LONG :)
Thank you for any help I can get... |
|
|
|
Hawkwing Newbie
Joined: 12 Oct 2002 Posts: 9 Location: Sweden
|
Posted: Sun Oct 13, 2002 10:21 am |
The actual "map" would look like:
**R**
*RNR*
**R**
and I start in the N room and wanted to go into one of the R rooms on random, then kill the mob and somehow remember what way I entered and when the death of the mob go into the N room again.
and the "death" trigger can go on:
Your last hit was the limit...
thanx again. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Oct 13, 2002 3:02 pm |
#TR {^[(%d)/(%d)hp (%d)/(%d)en} {#IF (%1 = %2) {wake;#T- Nroom;#T+ Rroom;#CASE %random(1, 4) {#VAR return s;n} {#VAR return w;e} {#VAR return n;s} {#VAR return e;w}};#IF (%1 < 100) {sleep}} {Nroom} {prompt|nocr}
#TR {There is no mob here} {@return;#T- Rroom;#T+ Nroom} {Rroom}
#TR {You see a mobile hanging here} {kill mobile} {Rroom}
#TR {Your last hit was the limit} {@return;#T- Rroom;#T+ Nroom}
LightBulb
Senior Member |
|
|
|
Hawkwing Newbie
Joined: 12 Oct 2002 Posts: 9 Location: Sweden
|
Posted: Sun Oct 13, 2002 3:22 pm |
Thank you, I will try this at once....*S*
|
|
|
|
Hawkwing Newbie
Joined: 12 Oct 2002 Posts: 9 Location: Sweden
|
Posted: Sun Oct 13, 2002 3:31 pm |
Hmmm, I have just one tiny problem with that solution, how do I start it? with a kill and it just gives me an empty space as a reply after the kill....
How do I get it to start? and where do I start it from? |
|
|
|
Hawkwing Newbie
Joined: 12 Oct 2002 Posts: 9 Location: Sweden
|
Posted: Sun Oct 13, 2002 3:46 pm |
I have tried the trigger and it does not do anything when it hits the max, I tried remaking it more simple to just trigger of max hp which is
[438/438hp 358/358en]
at 438
but still when I hit that stuff it does not do anything....it beats me why it does nothing... |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Oct 13, 2002 6:48 pm |
Replace the first trigger with this:
#TR {^~[(%d)/(%d)hp (%d)/(%d)en} {#IF (%1 = %2) {wake;stand;#T- Nroom;#T+ Rroom;#CASE %random(1, 4) {#VAR return s;n} {#VAR return w;e} {#VAR return n;s} {#VAR return e;w}};#IF (%1 < 100) {sleep}} {Nroom} {prompt|nocr}
LightBulb
Senior Member |
|
|
|
Hawkwing Newbie
Joined: 12 Oct 2002 Posts: 9 Location: Sweden
|
Posted: Sun Oct 13, 2002 7:46 pm |
Thank you for the help, that did not work but I made some smaller changes, I made 2 aliases.
This is how I made it to work though....
#CLASS {Nroom}
#CLASS {Rroom}
#CLASS 0
#ALIAS mob {sta;#T+ Rroom;#CASE %random( 1, 4) {#VAR return s;n} {#VAR return w;e} {#VAR return n;s} {#VAR return e;w};kill mobile}
#ALIAS mob2 {%if( @hp > 150, mob, sle)}
#VAR return {e}
#VAR hp {198}
#VAR maxhp {438}
#VAR end {349}
#VAR maxend {358}
#TRIGGER {Your last hit was the limit} {@return;#T- Rroom;mob2}
#TRIGGER {(%d)/(%d)hp (%d)/(%d)en} {#var hp %1;#var maxhp %2;#var end %3;#var maxend %4}
#TRIGGER {They aren't here.} {@return;#T- Rroom;#T+ Nroom;mob2} "Rroom"
#TRIGGER {A newbie mobile stands here.} {kill mobile} "Rroom" |
|
|
|
|
|