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
Dan_Bradley
Beginner


Joined: 11 Oct 2002
Posts: 21

PostPosted: Tue Apr 13, 2004 9:25 am   

Mapper Trigger Help
 
On the mud im playing at the moment it has a zone that I have mapped, but for about 6 rooms in the corners of the zone, they change where they are linked to depending on the date.

E.g: if you do TIME and the date is "The year of Maighdain" then the rooms will link to somewhere specific acordingly.

What I would like to know, is how to have a trigger that changes where the rooms link to relating to the date picked up whenever you do the TIME command.

Ideas? Sugestions?


Thanks in advance
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Apr 13, 2004 10:01 am   
 
As I have yet to find something zmud can't do......

#TR {The year of Maighdain"} {#call %maplocked(0);#call %roomlink(1,w,2);#call %maplocked(1)}

so yes you need %roomlink

The breakdown
#call %maplocked(0) //allows editing of the map
#call %roomlink(vnum,dir,typeORvnum) //ok here is the tricky one depening on %roommode if its one use use room key num if its 0 use the rooms vnum

so lets say you have a map with the main room as 1 and two possible rooms it can connect to as room 2 and 3.
room 1 has a west exit and an east exit but the east exit can go to 2 or 3 depending on the time so you would need something like this in your trigger #call %roomlink(1,e,3) and to set it back a trigger on the time when its differant #call %roomlink(1,e,2)

#call %maplocked(1) //locks the map
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