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


Joined: 02 Jul 2006
Posts: 2

PostPosted: Thu Jul 13, 2006 2:30 pm   

Parsing on line
 
How I can get some information from multiple lines.

Like

if there is ME in line 1 then var1 = X
if there is Flex and ME in line 2 then var2 and var3 are X
if there is HW and UP in line 4 then var4 and var5 are X

The information floods into your mind:
--------------------------------------
[member1] [good] [ ME ]
[member2] [good] [ AoA, Flex, HW, ME, Us, VMan, WW and eSkin ]
member3 is currently transformed into a owl.
[member3] [good] [ GCold, GPsi, HW, ME, Up and floating ]
[member4] [good] [ GCold, HW and ME ]
[member5] [evil] [ GCold, HW, ME and Us ]
[member6] [good] [ AoA, Flex, GCold, HW, ME, Us, VMan and eSkin ]
[member7] [good] [ GCold, HW, ME, Up and floating ]
[member8] [good] [ Flex, GCold, HW, ME, Us, VMan and eSkin ]
[member9] [good] [ GCold, HW, ME and Up ]

Thanks for advices
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Jul 13, 2006 7:12 pm   
 
There are couple of ways.. perhaps the easiest way is to use conditional triggers #COND or depending the text you can try using the WithIn option on your trigger.
_________________
Asati di tempari!
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