|
szydell Beginner
Joined: 06 Jan 2008 Posts: 14 Location: Poland
|
Posted: Sat Dec 20, 2008 12:34 pm
%roomlink and 'other command' |
Hello
I want to write code to create dynamic links between locations.
%roomlink works great, but i don't know how change from script the 'other command' option.
(overriding problem with #alias + #mo only partially removes the problem)
In room properties / Exits 'by hand' i can do that without any problem...
Is there any way to do that? I cannot find it in docs. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sat Dec 20, 2008 6:29 pm |
You can with zMapper or CMUDPro which in addition to SSH has access to the zMapper API. You want to manipulate the zMUDLink Object API using the COM interface. Also bear in mind that the mapper is going through significant rewrite right now and this functionality may be available in the new version of the mapper.
|
|
_________________ Asati di tempari! |
|
|
|
szydell Beginner
Joined: 06 Jan 2008 Posts: 14 Location: Poland
|
Posted: Sat Dec 20, 2008 6:44 pm |
possibly %roomportal in cmud 3 will work ok. tx
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Dec 20, 2008 11:48 pm |
If you're trying to set the "other command" quickly from the command line, you can enter
>enter grate>d
at the command line and this'll create a down exit whose command is "enter grate". If you're trying to do this in batches for a number of rooms, I'm not sure if that's possible without directly editing the database. |
|
|
|
szydell Beginner
Joined: 06 Jan 2008 Posts: 14 Location: Poland
|
Posted: Sun Dec 21, 2008 12:46 am |
work's great also as a room script :)
Thank You very much.
( but i was trying it in 3.03a ) |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Dec 21, 2008 1:33 am |
How exactly are you using this? You shouldn't need to use it as a room script, because once the exit's been created, it'll stick around.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Dec 21, 2008 9:58 pm |
%roomportal is the right function for creating and removing exits of the 'other' type.
You won't be able to do some of the spiffy dual assignments like setting the OtherCom value of an "east" exit with this function; that requires zMapper functions currently. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
szydell Beginner
Joined: 06 Jan 2008 Posts: 14 Location: Poland
|
Posted: Sun Dec 21, 2008 10:53 pm |
I need it for 'traveling' locations like river ferry/
For example :
When NPC ferry captain says : Now we're in village 1.
Link must be set to 'north' with command 'exit'.
When NPC says : Now we're in village 2.
Link must be set to 'south' with command 'exit'. (north must dissaper)
When i get echo 'ferry is sailing' I don't need any links. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Dec 21, 2008 11:19 pm |
Bah. This sounds like the elevator I built mapping for on one mud. The elevator required you to push a buton to call it, walk in when it arrived, push a button for your destination, ...wait...junk...wait, get out when the door opened because it would close and you would have to push something again.
You problem is best solved by making 3 rooms. Two are the end points they have links in the directions you want. The end points include a room script to issue any command required to start ferrying with a small logic check to see if you just came from that side, and a trigger 'ferry is sailing' to #TELEPORT you to the middle room. They should also be set to pause speedwalking when entered. The middle room just contains triggers to teleport to the right endpoint. Be sure your teleport command don't clear the speedwalk queue. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
szydell Beginner
Joined: 06 Jan 2008 Posts: 14 Location: Poland
|
Posted: Sun Dec 21, 2008 11:43 pm |
smart. i'll check it. thanks :)
|
|
|
|
|
|