|
Stephanie Spaltro Newbie
Joined: 22 Feb 2012 Posts: 6
|
Posted: Fri Mar 02, 2012 2:07 pm
I need this Zmud rescue trigger converted to work in Cmud |
Ok so a friend wrote this trigger set for rescues on Toril .. it works fine on Zmud, but will not work in Cmud.. can anybody out there fix this trigger for me?
Thanks in advance for your help!
#CLASS {WARRIOR|RESCUE}
#ALIAS radd {#ADDITEM RESCUES %proper( %1);#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 14)%proper( %1) %ansi( 11)ADDED%ansi( 3) to Rescue List.}
#ALIAS rclear {#VAR RESCUES {};#VAR RESCUERS {};#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 3)Rescue List%ansi( 11) CLEARED!}
#ALIAS rdel {#DELITEM RESCUES %proper( %1);#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 14)%1 %ansi( 11)DELETED%ansi( 3) from Rescue List.}
#ALIAS rlist {#VAR GROUP {};#VAR TANKS {};#MATH GROUP %numitems( @RESCUERS)+%numitems( @RESCUES)+1;#MATH TANKS %numitems( @RESCUERS)+1;#IF (@GROUP > 1) {#SAY;#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 3)GROUP: %ansi( 7)@GROUP;#SAY};#IF (%numitems( @RESCUERS) > 0) {#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 3)TANKS: %ansi( 7)@TANKS;#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 11)@MYCHAR~|@RESCUERS;#SAY};#IF (%numitems( @RESCUES) > 0) {#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 3)RESCUES: %ansi( 7)%numitems( @RESCUES);#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 11)@RESCUES;#SAY};#IF (@GROUP = 1) {#SAY;#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 3)RESCUE LIST%ansi( 7) EMPTY;#SAY}}
#ALIAS roff {#T- RESCUE1;#T- RESCUE2;#T- RESCUE3;#T- RESCUE4;#T- RESCUE5;#T- RESCUE6;#VAR RESCUE {0};#SAY;#SAY;#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 3)RESCUES: %ansi( 7)OFF;#SAY}
#ALIAS ron {#T+ RESCUE1;#T+ RESCUE2;#T+ RESCUE3;#T+ RESCUE4;#VAR LOOK {0};#VAR RESCUE {1};#SAY;#SAY;#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 3)RESCUES: %ansi( 7)ON;#SAY}
#ALIAS raddtank {#ADDITEM RESCUERS %proper( %1);#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 14)%proper( %1) %ansi( 11)ADDED%ansi( 3) to Tank Rescues.}
#ALIAS rdeltank {#DELITEM RESCUERS %proper( %1);#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)> %ansi( 14)%1 %ansi( 11)DELETED%ansi( 3) from Tank List.}
#ALIAS tc {#T+ RESCUE4;GROUP}
#ALIAS raddgr {#VAR WHO {};#VAR GROUP {};#VAR TANKS {};#VAR RESCUES {};#VAR RESCUERS {};#T- RESCUE1;#T+ RESCUE5;sc;who ing s}
#CLASS 0
#CLASS {WARRIOR|RESCUE|RESCUE1}
#TRIGGER {({@RESCUES}) {dodges|gasps from|in a mist of blood|is nearly slain|staggers from}} {RESCUE %1;#T- RESCUE1}
#TRIGGER {places * in the back of ({@RESCUES}), resulting in some strange noises and some blood.$} {RESCUE %1;#T- RESCUE1}
#TRIGGER {{, fighting|wounds|knocks|misses|a mirror image of|tried to backstab|tries to rescue|attacks|beat|beats|choke|chokes|touch|touches|hit|hits|slash|slashes|crush|crushes|whip|whips|pierce|pierces|smash|smashes|sting|stings|drain|drains|strike|strikes|pummel|pummels|pound|pounds|claw|claws|nip|nips|burn|burns|bite|bites} ({@RESCUES})} {#T- RESCUE1;RESCUE %1}
#TRIGGER {({@RESCUES}) TC:} {RESCUE %1;#T- RESCUE1} "" {nocr|prompt}
#TRIGGER {* realizes that ({@RESCUES}) is a jerk!$} {RESCUE %1;#T- RESCUE1}
#CLASS 0
#CLASS {WARRIOR|RESCUE|RESCUE3}
#TRIGGER {{Exits|You can't see a damn thing, you're blinded!|It is pitch black...}} {#T+ RESCUE2;#VAR LOOK {0}}
#TRIGGER {{l|lo|loo|look} {n|e|s|w|u|d}$} {#T- RESCUE1;#T+ RESCUE6}
#TRIGGER {{Your bash at|you topple over|In your haste to slam|You grit your|You lower your head|feeble headbutt|Your boots need|Your kick hits|You miss your|Your beautiful full|Your powerful shieldpunch|You slam your|with your clumsy shieldpunch|You failed to strike|You strike out wildly}*$} {#T- RESCUE1;#T- RESCUE2;#WAIT 7800;#T+ RESCUE1;#T+ RESCUE2}
#TRIGGER {But nobody is fighting {him|her|it}?$} {#T+ RESCUE1;#T+ RESCUE2}
#TRIGGER {Who do you want to rescue?$} {#T+ RESCUE1;#T+ RESCUE2}
#TRIGGER {{P: rcl|P: knl|P: sit} ~>} {#T- RESCUE1;#T- RESCUE2} "" {nocr|prompt}
#TRIGGER {You {clamber|rise|manage to unsteadily get} to your feet.$} {#T+ RESCUE1;#T+ RESCUE2}
#TRIGGER {scan$} {#T- RESCUE1;#T+ RESCUE6}
#TRIGGER {{You fail the rescue.|Banzai! To the rescue...}$} {#T- RESCUE1;#T- RESCUE2;#WAIT 3900;#T+ RESCUE1;#IF (@LOOK = 0) {LOOK}}
#TRIGGER {{Score information for |Character attributes for }&MYCHAR$} {}
#CLASS 0
#CLASS {WARRIOR|RESCUE|RESCUE2}
#TRIGGER {* is NOT pleased at being suddenly summoned*$} {#T+ RESCUE1;#T- RESCUE2;LOOK;#VAR LOOK {1}}
#TRIGGER {&SWITCH switches targets..$} {#IF (%ismember( @SWITCH, @RESCUES) = 0) {#IF (%ismember( @SWITCH, @RESCUERS) = 0) {#T+ RESCUE1;#T- RESCUE2;LOOK;#VAR LOOK {1}}}}
#TRIGGER {%w &%wPET %w * {from|in|enters|in from}{.| the north.| the east.| the south.| the west.| above.| below.}$} {#T+ RESCUE1;#T- RESCUE2;#IF (@PET =~ "{rides|air|earth|fire|ghast|ghost|ghoul|shade|shadow|skeletal|skeleton|spectre|spirit|treant|water|wight|wraith|zombie}") {#T+ RESCUE6} {LOOK};#VAR LOOK {1}}
#TRIGGER {%w %w {from|in|enters|in from}{.| the north.| the east.| the south.| the west.| above.| below.}$} {#T- RESCUE2;#T+ RESCUE6}
#CLASS 0
#CLASS {WARRIOR|RESCUE|RESCUE5}
#TRIGGER {^Record number of players on this boot: %d.$} {#T- RESCUE5;#DELITEM TANKS @MYCHAR;#SAY @TANKS;#FORALL @TANKS {raddtank %i};#SAY %ansi( 8)=%ansi( 7)=%ansi( 8)>;#FORALL @GROUP {radd %i};#IF (@RESCUE = 1) {#T+ RESCUE1};rlist}
#TRIGGER {^~[* {Cle|Sha|Enc|Bat|Bar|Ill|Ele|Rog|Psi|Dru|Inv|Nec|Lic|Dir|Ran|Anon}~] &%wWHO *~(*~)$} {#ADDITEM GROUP @WHO}
#TRIGGER {^~[* {War|Pal|A-P}~] &%wTANK *~(*~)$} {#ADDITEM TANKS @TANK}
#TRIGGER {^~[ Anon ~] &%wWHO *~(*~)$} {#ADDITEM GROUP @WHO}
#CLASS 0
#CLASS {WARRIOR|RESCUE|RESCUE4}
#TRIGGER {move%s(%d)/(%d)%shit%s-%s({@RESCUERS})} {#VAR PCT {};#MATH PCT %float( %1)/%float( %2);#VAR PCT %format( 2, @PCT);#VAR PCT %replace( @PCT, "0.", "");#IF (@PCT = 1.00) {@PCT = 100};#IF (%isfloat( @PCT) > 0) {@PCT = 100};#IF (@RESCUERS != %null & @COMBAT != 0) {#IF (@MYPCT > 50 & @PCT < 50) {RESCUE %3}}}
#TRIGGER {~< (%d)h/(%d)H*%dv/%dV*~>$} {#VAR MYPCT {};#MATH MYPCT %float( %1)/%float( %2);#VAR MYPCT %format( 2, @MYPCT);#VAR MYPCT %replace( @MYPCT, "0.", "");#IF (@MYPCT = 1.00) {@MYPCT = 100};#IF (%isfloat( @MYPCT) > 0) {@MYPCT = 100}} "" {prompt}
#TRIGGER {Group information for} {#T+ RESCUE6}
#CLASS 0
#CLASS {WARRIOR|RESCUE|RESCUE6}
#TRIGGER {%s%dv/%dV >$} {#T- RESCUE4;#T- RESCUE6;#IF (@RESCUE = 1) {#T+ RESCUE1;#T+ RESCUE2}} "" {prompt}
#CLASS 0
Alias Breakdown:
ron - rescue trigs on
roff - rescue trigs off
raddgr - autoadd your rescues list and tank list (will automatically clear existing list)
radd - add a rescue manually
raddtank - add a tank manually
rclear - clear your rescue and tank lists
rdel - delete a rescue manually
rdeltank - delete a tank manually
rlist - displays tank and rescue lists
tc - looks at the group list to autorescue other tanks if you are > 50% and tank is < 50% |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Mar 02, 2012 2:24 pm |
Have you narrowed down the problem at all? Can you tell us what isn't working? It's a bit hard to figure out the problem when all we know is "it doesn't work".
Also, have you read through the conversion notes? |
|
|
|
Stephanie Spaltro Newbie
Joined: 22 Feb 2012 Posts: 6
|
Posted: Fri Mar 02, 2012 2:42 pm |
i know next to nothing about triggers and the like.. i emailed zugg and was told to post it here.. all it says when i try to put it in is parsing error
|
|
|
|
Stephanie Spaltro Newbie
Joined: 22 Feb 2012 Posts: 6
|
Posted: Fri Mar 02, 2012 2:45 pm |
i lied, it says Parse Error Error parsing command: illegal token: >%ansi(14)%proper(%1)%ansi(11)ADDED%ansi(3)to rescue lis.}
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Mar 02, 2012 3:00 pm |
Aha!
In that line (the first alias), change ">" to "~>"
In fact, you will need to do this anywhere ">" appears within a #SAY command.
Several of your aliases have this problem.
Be warned, it is likely that there are a number of other errors in the code.
There are quite a few changes in syntax in cmud, and syntax is a lot stricter than what zmud allowed.
To see some of the changes, look at the topics under "Changes for Zmud Usears" at http://forums.zuggsoft.com/modules/mx_kb/kb.php?mode=doc&k=2622 |
|
|
|
Stephanie Spaltro Newbie
Joined: 22 Feb 2012 Posts: 6
|
Posted: Fri Mar 02, 2012 3:11 pm |
OH good Lord.. i should of just bought Zmud and not tried new stuff lmao
ill try what you said.. and i tyvm for your help. |
|
|
|
Mixsel Wanderer
Joined: 02 Feb 2003 Posts: 99 Location: Seattle, Wa
|
Posted: Sat Mar 03, 2012 7:35 pm |
run it through the compatability report function under File, and click on the tab Compiled Code when in the Package Editor, piece o cake.
|
|
_________________ Spin |
|
|
|
Stephanie Spaltro Newbie
Joined: 22 Feb 2012 Posts: 6
|
Posted: Thu Mar 22, 2012 12:26 am |
which would be great if i knew what to do with whatever comes up to actually fix it :(
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Thu Mar 22, 2012 12:43 am |
First, all your #SAYs need to have {} around the parameters (e.g. #SAY {%ansi(11)=%ansi(12)CLEAR}) Change all those, and then provide more information as to what errors you get in the compatibility report.
|
|
|
|
|
|