Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Oct 14, 2006 8:49 pm   

[1.10] Captured Data not evaluating Correctly
 
Code:
#TRIGGER "test" {Online Now: (%d)} {
$test=%1-1
#SAY CAPTURED: %1 LOCAL: $test INLINE: (%1-1)
}


Input: Online Now: 21
Result: CAPTURED: 21 LOCAL: -1 INLINE -1

But if I do it like this it works
Code:
#TRIGGER "test" {Online Now: (%d)} {
$test=%int(%1)-1
#SAY CAPTURED: %1 LOCAL: $test INLINE: (%1-1)
}


Input: Online Now: 21
Result: CAPTURED: 21 LOCAL: 20 INLINE: 20

After I call %int on the first %1 it works for the rest of them but I shouldnt have to use %int from a (%d) capture!
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Oct 17, 2006 12:13 am   
 
Added to bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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