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

Broken script

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
blkno1



Joined: 03 Dec 2007
Posts: 117

PostPosted: Wed Oct 29, 2014 5:55 pm    Post subject: Broken script Reply with quote

Seems to have broken. Ideas?

When the trigger hits I get an output of #var

Code:

#alias rcrep {
  #var room To;
  #var time War Room;
  #var zone Go;
  #showme <129>Comb Reporter Reset
  }

#var marious_cnt 1

#list {marious_act_1} {create}
        {^Marious, the Great War Wizard looks at a magic orb placed here by Vryce....} {nop}
        {^Marious, the Great War Wizard telepaths you, 'Let's see here... I see an entrance at...'.} {nop}
        {^Marious, the Great War Wizard telepaths you, '%1'.} {room}
        {^Marious, the Great War Wizard telepaths you, 'in the general vicinity of'.} {nop}
        {^Marious, the Great War Wizard telepaths you, '%1'.} {zone}
        {^Marious, the Great War Wizard telepaths you, '%1'.} {time}

#act {$$marious_act_1[$$marious_cnt]}
{
    #if {"$marious_act_1[$marious_cnt+1]" != "nop"}
    {
        #var $marious_act_1[$marious_cnt+1] %1
    };
    #math marious_cnt ($marious_cnt + 2) % 12
}
Back to top
View user's profile Send private message Yahoo Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Wed Oct 29, 2014 8:04 pm    Post subject: Reply with quote

Try:

Code:

    #if {"$marious_act_1[+$marious_cnt+1]" != "nop"}
    {
        #var $marious_act_1[+$marious_cnt+1] %1
    };


It changes it to an index lookup which supports math. Think I changed that behavior a while ago because things became too unpredictable.
Back to top
View user's profile Send private message Send e-mail
blkno1



Joined: 03 Dec 2007
Posts: 117

PostPosted: Thu Oct 30, 2014 5:42 am    Post subject: Reply with quote

Ecstatic

Thanks yet again!
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion 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