Iceclaw Apprentice
Joined: 11 Sep 2005 Posts: 124
|
Posted: 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" |
|