|
Ggoss Apprentice
Joined: 01 Nov 2006 Posts: 114
|
Posted: Wed Jul 30, 2008 4:04 am
Help with Trig 2.30 |
Ok this trigged work then my mud changed the output a bit and no matter what i seem to do i can't seem to get it to work now.
#TRIGGER "grouptrig" {Your group consists of:} {#VAR group ""}
#COND {%w*~)%s%n/%n%shit,%s%n/%n%smove (%w)} {#additem group %1} {looplines|param=10}
Your group consists of (12/13):
( Head) 826/826 hit, 122/123 move, Boko === 0 difference
(Front) 885/885 hit, 146/147 move, Recya === 0 difference
(Front) 667/667 hit, 130/131 move, Aik === 0 difference
(Front) 812/812 hit, 123/124 move, Talos === 0 difference
(Front) 909/909 hit, 111/112 move, Issa === 0 difference
(Front) 724/724 hit, 125/126 move, Krail === 0 difference
(Front) 718/718 hit, 120/121 move, Barat === 0 difference
(Front) 847/885 hit, 121/121 move, Marklin === -38 difference
(Front) 1323/1323 hit, 290/291 move, Xod === 0 difference
(Front) 1400/1400 hit, 445/450 move, a beautiful pegasus === 0 difference
(Front) 723/775 hit, 101/102 move, Gamrod === -52 difference
(Front) 716/716 hit, 125/126 move, Yza === 0 difference
The (12/13) was the part they added. and I've tried modifying it as such
Your group consists of%s(
then rest of trig and it just wont work. Ohh basically what it does is captures each persons group name into a variable and i place this variable into my status line so i can see who is grouped. I do have a 2nd trigger running off something similiar and thats what gives the hp difference, but i've tried with that on and with that off. |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Wed Jul 30, 2008 1:18 pm |
You need a tilde before the parentheses: ~(
|
|
|
|
Ggoss Apprentice
Joined: 01 Nov 2006 Posts: 114
|
Posted: Thu Jul 31, 2008 9:10 pm |
Ok i got this fixed so it works agian, but due to my other health script it makes it so only the health script works, anyway i can merge the 2?
Here are the 2 triggers and a sample output from the group cmd the mud has
Pattern: ~(&gpos~)%s&%nhit/&%dmaxhit%shit,%s&%nmov/&%dmaxmov%smove &name
Value:
hitper = (100 * @hit/@maxhit)
hitdif = (@hit-@maxhit)
#IF (@hitper > 30) {#SU "("@gpos") "@hit"/"@maxhit" hit, "@mov"/"@maxmov" move, "@name" === "@hitdif" difference"
#SWITCH (@hitper >= 95) {#COL bold,green}
(@hitper > 90) {#COL brown}
(@hitper > 80) {#COL yellow}
(@hitper > 50) {#COL bold,magenta}
(@hitper > 30) {#COL magenta}}
{#IF (@hitper > 1) {#SU "("@gpos") "@hit"/"@maxhit" hit, -"@mov"/"@maxmov" move, mana "@name" === "@hitdif" difference"
#COL bold,red} {#SU "("@gpos") "@hit"/"@maxhit" hit, "@mov"/"@maxmov" move, "@name" === "@hitdif" difference -= MORTED =-"
#COL blink,bold,red}}
#CAP GROUP
#TRIGGER "grouptrig" {Your group consists of ~(} {#VAR group ""}
#COND {%w*~)%s%n/%n%shit,%s%n/%n%smove (%w)} {#additem group %1} {looplines|param=10}
Your group consists of (10/13):
( Head) 858/858 hit, 123/123 move Boko
(Front) 905/905 hit, 147/147 move Recya
(Front) 642/642 hit, 120/120 move Trongg
(Front) 729/731 hit, 126/126 move Krail
(Front) 960/960 hit, 127/127 move Drisk
(Front) 1472/1482 hit, 216/216 move Beltriz
(Front) 1343/1400 hit, 450/450 move a beautiful pegasus
(Front) 723/723 hit, 131/131 move Aik
(Front) 1109/1109 hit, 167/167 move Garis
(Front) 645/645 hit, 149/149 move Lethien |
|
|
|
|
|
|
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
|
|