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
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Fri Jan 24, 2003 6:32 am   

complex trigger for status window HELP!!!!!
 
OK I have been useing this is my prompt

426hp 344m>390mv 164wt 350mxwt 1887287ex Ashen Fst>

This is my trigger
#TRIGGER {(%d)hp (%d)m>(%d)mv (%d)wt (%d)mxwt (%d)ex (*)>} {#var ymxwt %5;#var ymwt %4;#math yowt @ymxwt-@ymwt;#gvar yohp %1;#gvar yomana %2;#gvar yomv %3;#gvar yoex %6;#var area %7;#show @area}

I use #show so that I can test to see what @area gets.
The problem is if you try this it will show Ashen but wont show fst. it takes the fst puts it in the default and lockis it up so if ashen changes to hollow grds I would still get Ashen.
please oh please help.
I did get this to work one but can't remember how I did it.

megamog75
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Jan 24, 2003 7:11 am   
 
Its how zMud treats spaces in its handling of parameters. To take all the information
use "" or {}

#TRIGGER {(%d)hp (%d)m>(%d)mv (%d)wt (%d)mxwt (%d)ex (*)>} {#var ymxwt %5;#var ymwt %4;#math yowt @ymxwt-@ymwt;#gvar yohp %1;#gvar yomana %2;#gvar yomv %3;#gvar yoex %6;#var area {%7};#show @area}

Ton Diening
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Fri Jan 24, 2003 7:18 am   
 
Thanks that worked and the funny thing is as you wrote this I figured this out too.
and this work also.

#TRIGGER {&%d{yohp}hp &%d{yomana}m>&%d{yomv}mv &%d{ymwt}wt &%d{ymxwt}mxwt &%d{yoex}ex &%*{area}geo>} {#math yowt @ymxwt-@ymwt;#show @area} "" {prompt}

megamog75
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