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
intoK
Apprentice


Joined: 18 Feb 2007
Posts: 190

PostPosted: Sun Feb 18, 2007 3:48 pm   

optimizing
 
;longloop
; #LOO %numrooms {
; #VA _trs {}
; #FO @dexits {
; _trs=%additem(%trim(@stripg(%roomname(%roomlink(%mapvnum(%i),%j)))),@_trs)
; }
; #IF (@nexits == @_trs) {
; #ADDI rlist %mapvnum(%i)
; }
; }
works, but when it have to deal with 30+ rooms it takes way too long for my purposes...
only way i can think of optimizing it is dynamic bin tree, but it requires breaking off second loop from if statement, without breaking off first one.
so is there any way to get out of %j loop w/o killing %i loop? or am i mising some simpler solution
tia
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