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
Luth
Newbie


Joined: 24 Oct 2004
Posts: 5
Location: Germany

PostPosted: Sat May 05, 2007 8:05 am   

Help on Portals
 
I try to explain my problem.

Speedwalking is no problem. If i type #walk xx ... zmud walks to room called xx.

Now my problem.
In my mud i am able to use portals. From any portal i can teleport to 40 other portals. I have tried to use these portals while speedwalking, but zmud jumps directly to a portal:

Example: I am o, p1, p2 are portals, i want to go to xx:

o - x - x - p1 - x - x - x - p2 - xx

#walk xx => p2 - xx

It shoul be: x - x - p1 - p2 - xx

I tried to menage the costs of a portal .. but then zmud doesnt use the portal, if the costs are to high.
I hope you understand my problem. If there is someone talking german who might help, i will explain that in german.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sat May 05, 2007 5:20 pm   
 
Can you use these portals from anywhere in the world, or are they just special room exits? If they're special exits, just create them like any other exit and change the command using the "other com" box on the room properties dialog's exits tab. If they're commands you can use from anywhere, look up the #portal and #teleport commands in the help file.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Luth
Newbie


Joined: 24 Oct 2004
Posts: 5
Location: Germany

PostPosted: Sat May 05, 2007 6:35 pm   
 
They are special room exits ..

I have about 40 rooms .. so i have to connect them all.

Thank you.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Tue May 08, 2007 10:18 am   
 
There is a shortcut, but I can't remember the syntax exactly. While your current room is the room with the special exit, I think you can use ">e>enter portal" to create an exit to the east that uses the command "enter portal". Check out the mapping tutorials, there's probably an explanation of how to use it.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Luth
Newbie


Joined: 24 Oct 2004
Posts: 5
Location: Germany

PostPosted: Tue May 08, 2007 2:32 pm   
 
My idea is using %roomportal:

Every room i am able to teleport is called portal1, portal2 ..., portal40. My alias to teleport in to a room called portal5 is p5.
This is my idea:

#VAR A 1
#WHILE (@A < 41) {
#LOO 1,40 {
#IF (@A != %{i}) {
#NOOP %roomportal("portal@A","p%{i}","portal%{i}")
}
}
#ADD @A +1
}

I will check that.
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