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


Joined: 26 Oct 2004
Posts: 6

PostPosted: Wed Mar 22, 2006 12:13 pm   

A little hand for this please ?
 
I'm trying to made a catching of group status and affect spell status into a status windows, can anyone help me ?

As for group:

Exemple:
group
Your group consists of:
[ 543( 557)H 431( 683)M 224( 224)V] [30 Dr] Gargath (Head of group)
[ 672( 672)H 10( 10)M 366( 366)V] [24 --] The Earth Elemental

Code:
#CLASS {groupstat}
#TRIGGER {Your group consists of:} {#ECHO Group stat detected}
#TRIGGER {%s~[ (%n)~( (%n)~)H (%n)~( (%n)~)M (%n)~( (%n)~)V~] ~[(%n) (%w)~] (%w) ~(Head of group~)} {
 #VAR group ""
 #VAR temp ""
 #VAR temp.hp %1
 #VAR temp.maxhp %2
 #VAR temp.mp %3
 #VAR temp.maxmp %4
 #VAR temp.mv %5
 #VAR temp.maxmv %6
 #VAR temp.lvl %7
 #VAR temp.class %8
 #VAR group.name %9
 #VAR group.leader @temp
 #VAR group.size 0
 }
#TRIGGER {%s~[%s(%n)~(%s(%n)~)H%s(%n)~(%s(%n)~)M%s(%n)~(%s(%n)~)V~]%s~[(%n)%s(*)~]%s(*){^~(Head of group~)}$} {
 #VAR temp ""
 #VAR temp.hp %1
 #VAR temp.maxhp %2
 #VAR temp.mp %3
 #VAR temp.maxmp %4
 #VAR temp.mv %5
 #VAR temp.maxmv %6
 #VAR temp.lvl %7
 #VAR temp.class %8
 #VAR group.p@group.size @temp
 #ADD group.size 1
 }
#CLASS 0


Can't get it to work and I cannot get it into a status windows.

As for spell catcher, I simply cannot get it.

Exemple:
aff
Affecting Spells:
-----------------
aid : 59 to HP [ 64 hours] [NONE]
breathe water : 0 to NONE [ 24 hours] [BreatheWater ]
waterwalk : 0 to NONE [ 50 hours] [Watwalk ]
bless : 3 to Hitroll [ 12 hours] [NONE]
haste : 2 to 1/2-Att [ 7 hours] [Haste ]
armor : -15 to Armor [ 17 hours] [NONE]
mantle of chaos : -35 to Armor [ 48 hours] [NONE]

Code:
?


Can someone toss me a hand ?
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Wed Mar 22, 2006 1:04 pm   
 
Yes look into using #CONDITION both of your captures start with an initial trigger followed by a repeating pattern and hopefully a blank line at the end so you can use something like the following

#TRIGGER {Initial pattern:} {#NOOP do stuff}
#COND {Loop pattern} {#NOOP store stuff} {looppat}
#COND {^$} {#NOOP finish and display stuff}
_________________
Taz :)
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