About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Iceclaw
Apprentice


Joined: 11 Sep 2005
Posts: 124

PostPosted: Thu Jan 12, 2006 10:42 pm   

Calls with Variables
 
Trying to get all the room_exits for a maze to add at once, with a command
That basically would work like this

#forall @RapidGen {#call %map.newlink(%i)}



Example of output.

Obvious exits from room 3001:
North - A Beautiful Sanctuary (room 3054)
South - The Temple Square (room 3005)
Up - Entrance to Mud School (room 3700)
Down - A Blackened Pit (room 3388)

Trigger:
Obvious exits from room (%d):$

#var Integrity_Check ""
#addkey Integrity_Check Cur_Num {%1}

Trigger: Down - (*)~(room (*)~)$
Does:

#addkey Integrity_Check Down {%2}
#additem RapidGen %roomkey( %db( @Integrity_Check, Cur_Num)),%roomkey( %Db( @Integrity_Check, Down)),%db( @Dir_Num, D),%db( @Dir2_Num, D),0,%replace( "%" %eval( "null"), "~"%~" null", "%null"),1


Results
Contents of @RapidGen "11737,11734,9,7,0,%null,1"
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