TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#foreach

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Chicomecoatl



Joined: 08 Sep 2009
Posts: 73
Location: Kansas

PostPosted: Tue Jun 07, 2011 10:51 pm    Post subject: #foreach Reply with quote

In 2.00.6, i'm noticing a strange interaction with #foreach.

I have a couple variables, as show below:

Code:

#VARIABLE {portaldest}={{'aard amulet'}{26151}{'apple press'}{16224}{'aura sage'}{33031}{'honeycomb'}{31304}{'ki chicomecoatl'}{-1}{'train ticket'}{15028}}

#VARIABLE {haveportal}={{'aard amulet'}{1}{'apple press'}{1}{'aura sage'}{1}{'honeycomb'}{1}{'ki chicomecoatl'}{1}{'train ticket'}{1}}


Then i do this, which basically runs through it, and links it to the current room:

Code:

#foreach {$portaldest[]} {tmp}
{
    #map {dig} {wearportal $tmp} {$portaldest[$tmp]}
}


Which /should/ do something like looping through each of the indexes of the variable, then linking to the current room the desitation, variable[index], to get the key for the index. But it's not looping them at all. I even did something like "#foreach {$portaldest[]} {tmp} {#show $tmp}" but it never changes. This has worked, flawlessly, in the past, but suddenly nothing.... Any ideas?

[EDIT]: Nevermind, i'm retarded. I had '$tmp" as the variable the foreach was setting instead of 'tmp'
_________________
Chico
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group