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

Dynamic List Name Not Working

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
atraeyu



Joined: 12 Dec 2007
Posts: 165

PostPosted: Tue Feb 11, 2014 11:25 pm    Post subject: Dynamic List Name Not Working Reply with quote

This works:

Code:

#var {$dynamicVarName} {somevalue};


But this doesn't:

Code:

#var {$dynamicListName[someIndex]} {someValue}


Any ideas?
Back to top
View user's profile Send private message AIM Address
atraeyu



Joined: 12 Dec 2007
Posts: 165

PostPosted: Wed Feb 12, 2014 1:02 am    Post subject: Reply with quote

This is causing a specific problem for me with the following code:

Code:

#action {** HP: %1/%2  SP: %3/%4} {
    #nop Calculate the hp/sp differentials.;
    #var $vTempHP   {%1};
    #var $vTempHPM  {%2};
    #var $vTempSP   {%3};
    #var $vTempSPM  {%4};
    #format vTempSPM {%p} {$vTempSPM};
    #math $vTempHPD {$vTempHPM - $vTempHP};
    #math $vTempSPD {$vTempSPM - $vTempSP};

    #list $vSMSessionName insert 1 $vTempHP;
    #list $vSMSessionName insert 2 $vTempHPM;
    #list $vSMSessionName insert 3 $vTempHPD;
    #list $vSMSessionName insert 4 $vTempSP;
    #list $vSMSessionName insert 5 $vTempSPM;
    #list $vSMSessionName insert 6 $vTempSPD;
}


Any ideas?
Back to top
View user's profile Send private message AIM Address
Dorien



Joined: 26 Jul 2012
Posts: 2

PostPosted: Wed Feb 12, 2014 4:19 am    Post subject: Reply with quote

instend of
Code:
 #var $vTempSPM  {%4};

try
Code:
 #var vTempSPM  {%4};


same with #math function
Back to top
View user's profile Send private message
atraeyu



Joined: 12 Dec 2007
Posts: 165

PostPosted: Wed Feb 12, 2014 8:48 am    Post subject: Reply with quote

Thanks! Sorry, that was a stupid typo on my part.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help 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