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
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Nov 11, 2006 10:15 pm   

Not a clue, could use help...
 
In the MUD I play, we have a ship we can sail. It's a huge ocean out there. What I am looking to do is actually make a map of the ocean, using the built in mapper, and use triggers to sail every bit of the ocean so that the ocean can be mapped. Here's what it looks like when sailing:

sail south
The ship is pointed south.

The ship sails south.
Only the wide open ocean can be seen.

The above is what is outputted if there is no land blocking the ship.

sail east
The ship is pointed east

The ship sails east.
Land blocks you from sailing north.

The above shows land blocking the ship from moving in one direction.

For more than one blocked direction, it appears like this:

Land blocks you from sailing east, south and north.
Land blocks you from sailing north and south.


There are also other descriptions, as well. These are used to indicate places where you can go ashore.

There are 3 ships in the water here.
A shore line can be seen not far from the ship.
You may <enter dinghy> to row ashore.
Land blocks you from sailing north.

Or...

There are 5 ships in the water here.
Docks can be seen not far from here.
Land blocks you from sailing east, north and south.


Sometimes, though, there are no ships in the water, in which case, you'd see just the last two lines.

If this is possible, I'd love for this to work. I realize it's a daunting task, but many thanks will be given for the one who can successfully create the script for it. Thanks in advance.

Charneus


Last edited by charneus on Sat Nov 18, 2006 10:11 pm; edited 1 time in total
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Nov 12, 2006 3:43 am   
 
It's considerably harder to get things working without context. For instance, when you SAIL is it like normal movement with room names, descriptions, and exits appearing or is it more of a scripted message as though you were attacking or doing some other non-movement action?
_________________
EDIT: I didn't like my old signature
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Nov 12, 2006 5:29 am   
 
In other words a minimum of 3 examples of movement are really needed in order to put this in context. The examples should include some display before all 3 commands issued and at least until a prompt after the last command completes, generally with all 3 commands being preformed in sequence. You can never have too much information in a request for help, and your first post was a very good start, but we will still need more before a successful, or at least close to successful, script can be made.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Nov 12, 2006 6:01 pm   
 
Well, that's pretty much the entire thing, but here's what it looks like sailing (I did have the prompt gagged, forgot about that.)

sail west
The ship is pointed west.
1200 hps|750 sp|1030 mp >

The ship sails west.
Land blocks you from sailing north.

sail south
The ship is pointed south.
1200 hps|750 sp|1030 mp >

The ship sails south.
Land blocks you from sailing east.

sail south
The ship is pointed south.
1200 hps|750 sp|1030 mp >

The ship sails south.
Only the wide open ocean can be seen.


I hope that helps out some. I'm not even sure if what I want is possible. But again, I appreciate any attempts to get this to work. Thanks again in advance. :)

Charneus
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Sun Nov 12, 2006 6:19 pm   
 
well it looks like you have no real room descripts to orient yourself, but i would say a start would be
#tr {The ship sails (%w)~.} {#var pdirs {n|s|w|e};#makeroom %1;#alarm +1 {#exec %roomexit(,@pdirs)}}
#tr {Land blocks you from sailing (%w)~.} {#delitem pdirs %left(%1,1)}
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Nov 18, 2006 9:41 pm   
 
Tried the above, and actually made a couple of changes because originally, it didn't work.

Now I have it set to randomize the room it sails to, and to make the room on the map. The only problem with that is this...

If I sail north, south, east, west, then try to sail north, I do the first four with no problems. The mapper makes the rooms and links them all together. But since the last room is not linked with the first room, it returns an error sailing. What I mean is this...

Code:

[1]-[2]
     |
[4]-[3]


As you can vaguely tell with my map, 1 is linked with 2, 2 with 1 and 3, and 3 with 4. If I am in room 4, and I sail north, it returns an "Access violation" error.

Is there a way to override that? :\ Thanks!

Charneus

Charneus
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Nov 18, 2006 11:17 pm   
 
Actually got it fixed. If I need future help, I'm gonna add more. Thanks, guys!
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