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
Sinew
Newbie


Joined: 07 Jul 2002
Posts: 1

PostPosted: Sun Jul 07, 2002 9:09 pm   

Awkward string problem
 
I wanna capture a line of text and use the numbers in it as variables but can't get the right syntax because of the different chars involved. Any ideas?

The trigger text is

You have 150(155) hit and 155(155) hit points

I'm trying to capture and use the 4 numbers as variables

What should the corrent sytax for the above be ?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sun Jul 07, 2002 9:31 pm   
 
You need to ~ the brackets in the trigger phrase.

#TRIGGER {^You have (%d)~((%d)~) hit and (%d)~((%d)~) hit points} {#VAR V_1 %1;#VAR V_2 %2;#VAR V_3 %3;#VAR V_4 %4}



Ton Diening
Providing untested answers that tend to be
more complicated than others.
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