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


Joined: 07 Nov 2006
Posts: 22

PostPosted: Sat Feb 10, 2007 6:01 am   

Integrating the mapper with some scripts
 
Is it possible to get a list of all the currently selected rooms on the mapper, from an alias or trigger?

Also, when double clicking a room, is it possible to run a script instead of autowalking?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sat Feb 10, 2007 3:37 pm   
 
The first require the zMapper plugin to ge the selected rooms.

For your second question: It is possible. The way to do it is capture a direction being sent, check the %destroom to determine whether it is a walk and then take whatever actions are required. Here is an example from my scripts, it should give some sort of starting point.
#ONINPUT {^(*)$} {CommandSent="%1";#GAG;#IF (%destroom) {PathSet="";#FORALL %subchar(%pathexpand(%pathfrom(%roomnum,%destroom)),".()","") {#IF (%len("%i")=1) {PathSet=%additem(@DirConvertS("%i"),@PathSet)} {PathSet=%additem("%i",@PathSet)}};#NODIR 1};:veroule:%1}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
David256
Beginner


Joined: 07 Nov 2006
Posts: 22

PostPosted: Sun Feb 11, 2007 6:15 am   
 
Woa clever trick Surprised

Works great, thanks a lot!
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