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
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Fri Jul 19, 2002 9:39 pm   

wierd happenings with a HUGE trigger
 
okay i have these 2 triggers set up ...

#TRIGGER {^Trigael: ~((%w)~) Marabah: ~((%w)~)} {#if (%1=full) {#if (%2=full) {@world1 = Rune 662, 746 ;@world2 = Xaventry 625, 461} {#if (%2=gibbous waning) {@world1 = Rune 662, 746;@world2 = Lowangen 1177, 384} {#if (%2=half waning) {@world1 = Rune 662, 746;@world2 = CTF Arena 967,699} {#if (%2=crescent waning) {@world1 = Rune 662, 746;@world2 = Sigil 502, 1281} {#if (%2=new) {@world1 = Rune 662, 746;@world2 = Dungeon Deceit 1015, 1116} {#if (%2=crescent waxing) {@world1 = Rune 662, 746;@world2 = Maldra's Keep 1279, 1053} {#if (%2=half waxing) {@world1 = Rune 662, 746;@world2 = Templeton 1674, 541} {#if (%2=gibbous waxing) {@world1 = Rune 662, 746;@world2 = Decara 1538, 430}} {}}}}}}}} {#if (%1=gibbous waning) {#if (%2=full) {@world1 = Xaventry 625, 461;@world2 = Lowangen 1177, 384} {#if (%2=gibbous waning) {@world1 = Xaventry 625, 461;@world2 = CTF Arena 967,699} {#if (%2=half waning) {@world1 = Xaventry 625, 461;@world2 = Sigil 502, 1281} {#if (%2=crescent waning) {@world1 = Xaventry 625, 461;@world2 = Dungeon Deceit 1015, 1116} {#if (%2=new) {@world1 = Xaventry 625, 461;@world2 = Maldra's Keep 1279, 1053} {#if (%2=crescent waxing) {@world1 = Xaventry 625, 461;@world2 = Templeton 1674, 541} {#if (%2=half waxing) {@world1 = Xaventry 625, 461;@world2 = Rune 662, 746} {#if (%2=gibbous waxing) {@world1 = Xaventry 625, 461;@world2 = Decara 1538, 430}} {}}}}}}}}} {#if (%1=half waning) {#if (%2=full) {@world1 = Lowangen 1177, 384;@world2 = CTF Arena 967,699} {#if (%2=gibbous waning) {@world1 = Lowangen 1177, 384;@world2 = Sigil 502, 1281} {#if (%2=half waning) {@world1 = Lowangen 1177, 384;@world2 = Dungeon Deceit 1015, 1116} {#if (%2=crescent waning) {@world1 = Lowangen 1177, 384;@world2 = Maldra's Keep 1279, 1053} {#if (%2=new) {@world1 = Lowangen 1177, 384;@world2 = Templeton 1674, 541} {#if (%2=crescent waxing) {@world1 = Lowangen 1177, 384;@world2 = Rune 662, 746} {#if (%2=half waxing) {@world1 = Lowangen 1177, 384;@world2 = Xaventry 625, 461} {#if (%2=gibbous waxing) {@world1 = Lowangen 1177, 384;@world2 = Decara 1538, 430}} {}}}}}}}}} {#if (%1=crescent waning) {#if (%2=full) {@world1 = CTF Arena 967,699;@world2 = Sigil 502, 1281} {#if (%2=gibbous waning) {@world1 = CTF Arena 967,699;@world2 = Dungeon Deceit 1015, 1116} {#if (%2=half waning) {@world1 = CTF Arena 967,699;@world2 = Maldra's Keep 1279, 1053} {#if (%2=crescent waning) {@world1 = CTF Arena 967,699;@world2 = Dungeon Deceit 1015, 1116} {#if (%2=new) {@world1 = CTF Arena 967,699;@world2 = Rune 662, 746} {#if (%2=crescent waxing) {@world1 = CTF Arena 967,699;@world2 = Xaventry 625, 461} {#if (%2=half waxing) {@world1 = CTF Arena 967,699;@world2 = Lowangen 1177, 384} {#if (%2=gibbous waxing) {@world1 = Sigil 502, 1281;@world2 = Decara 1538, 430}} {}}}}}}}}} {#if (%1=new) {#if (%2=full) {@world1 = Sigil 502, 1281;@world2 = Dungeon Deceit 1015, 1116} {#if (%2=gibbous waning) {@world1 = Sigil 502, 1281;@world2 = Maldra's Keep 1279, 1053} {#if (%2=half waning) {@world1 = Sigil 502, 1281;@world2 = Templeton 1674, 541} {#if (%2=crescent waning) {@world1 = Sigil 502, 1281;@world2 = Rune 662, 746} {#if (%2=new) {@world1 = Sigil 502, 1281;@world2 = Lowangen 1177, 384} {#if (%2=crescent waxing) {@world1 = Sigil 502, 1281;@world2 = Xaventry 625, 461} {#if (%2=half waxing) {@world1 = Sigil 502, 1281;@world2 = CTF Arena 967,699} {#if (%2=gibbous waxing) {@world1 = Decara 1538, 430;@world2 = Xaventry 625, 461}} {}}}}}}}}} {#if (%1=crescent waxing) {#if (%2=full) {@world1 = Dungeon Deceit 1015, 1116;@world2 = Maldra's Keep 1279, 1053} {#if (%2=gibbous waning) {@world1 = Dungeon Deceit 1015, 1116;@world2 = Templeton 1674, 541} {#if (%2=half waning) {@world1 = Dungeon Deceit 1015, 1116;@world2 = Rune 662, 746} {#if (%2=crescent waning) {@world1 = Dungeon Deceit 1015, 1116;@world2 = Xaventry 625, 461} {#if (%2=new) {@world1 = Dungeon Deceit 1015, 1116;@world2 = Lowangen 1177, 384} {#if (%2=crescent waxing) {@world1 = Dungeon Deceit 1015, 1116 ;@world2 = CTF Arena 697, 699} {#if (%2=half waxing) {@world1 = Dungeon Deceit 1015, 1116;@world2 = Sigil 502, 1281} {#if (%2=gibbous waxing) {@world1 = Seahag Isle 1752, 984;@world2 = Templeton 1674, 541}} {}}}}}}}}} {#if (%1=half waxing) {#if (%2=full) {@world1 = Maldra's Keep 1279, 1053;@world2 = Templeton 1674, 541} {#if (%2=gibbous waning) {@world1 = Maldra's Keep 1279, 1053;@world2 = Rune 662, 746} {#if (%2=half waning) {@world1 = Maldra's Keep 1279, 1053;@world2 = Xaventry 625, 461} {#if (%2=crescent waning) {@world1 = Maldra's Keep 1279, 1053;@world2 = Lowangen 1177, 384} {#if (%2=new) {@world1 = Maldra's Keep 1279, 1053;@world2 = CTF Arena 967,699} {#if (%2=crescent waxing) {@world1 = Maldra's Keep 1279, 1053;@world2 = Sigil 502, 1281} {#if (%2=half waxing) {@world1 = Maldra's Keep 1279, 1053;@world2 = Dungeon Deceit 1015, 1116} {#if (%2=gibbous waxing) {@world1 = Seahag Isle 1752, 984;@world2 = Lowangen 1177, 384}} {}}}}}}}}} {#if (%1=gibbous waxing) {#if (%2=full) {@world1 = Templeton 1674, 541;@world2 = Rune 662, 746} {#if (%2=gibbous waning) {@world1 = Templeton 1674, 541;@world2 = Xaventry 625, 461} {#if (%2=half waning) {@world1 = Templeton 1674, 541;@world2 = Lowangen 1177, 384} {#if (%2=crescent waning) {@world1 = Templeton 1674, 541;@world2 = CTF Arena 967,699} {#if (%2=new) {@world1 = Templeton 1674, 541;@world2 = Sigil 502, 1281} {#if (%2=crescent waxing) {@world1 = Templeton 1674, 541;@world2 = Dungeon Deceit 1015, 1116} {#if (%2=half waxing) {@world1 = Templeton 1674, 541;@world2 = Maldra's Keep 1279, 1053} {#if (%2=gibbous waxing) {@world1 = Decara 1234, 865;@world2 = Rune 662, 746}} {}}}}}}}}}}

#trigger {^Trigael: ~(*~) Marabah: ~(*~)} {#ECHO %ansi(purple,hi)Worldgates:%ansi(green) @world1%ansi(purple,hi) and%ansi(green) @world2}

the line they have to trigger off of is this ...

Trigael: (half waxing) Marabah: (crescent waxing)

for some reason when it triggers off that line i get this output ...

quote:

Trigael: (half waxing) Marabah: (crescent waxing)
Variables:
betters 0
hp 1170
prac 263
qp 33,813
sp 1225
st 1545
exp 153,143,103
tnl 4672535
WhoZone tower
Num 6
NumRedraw 6
ConstRedraw 30
NumIm 0
maxhp 1279
maxst 1545
maxsp 1225
wholooking notlooking
reply
qtime 19
world2 Sigil 502, 1281
%lastcom2 #var st 1545
%lastcom time
%lastin2 #var hp 1170
#var sp 1225
#var st 1545
%lastinput #VAR;world1 {Maldra's Keep 1279, 1053};#VAR world2 {Sigil 502, 1281}
%line3 [Mail]<1170hp 1225sp 1545st> time
%line2 The twin moons, Trigael and Marabah are in the phases:
%line Trigael: (half waxing) Marabah: (crescent waxing)
%trigger Trigael: (half waxing) Marabah: (crescent waxing)
%action #VAR;world1 {Maldra's Keep 1279, 1053};#VAR world2 {Sigil 502, 1281}
%char brodie
%host materiamagica.com
%port 9000
%ctime 43093
%window brodie
%lastcom3 #var sp 1225
%ip 192.168.1.200
%crlf

%lf
%tab <9>
%tick 2
world1 {Maldra's Keep 1279, 1053}
Worldgates: and Sigil 502, 1281


and then it sends world1 {Maldra's Keep 1279, 1053} to the mud as a regular command instead of setting the variable to it, i didn't write this script myself but cant get ahold of the author =/ anyone have any ideas?

Edited by Kjata: Code tags removed for easier viewing


Edited by - Kjata on 07/19/2002 16:59:55
Reply with quote
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Fri Jul 19, 2002 10:46 pm   
 
no one has any idea? this is really strage and i'd like to find out why its doing that =/
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jul 19, 2002 11:06 pm   
 
I believe that these are not the only two triggers that fire on this line bacause the output you see is not caused by anything I see on these two triggers. What causes this output is executing a #VAR command without any arguments. This tells zMUD to list all of the variables that it currently has defined.

Now, about the text being sent to the MUD and not saved into a variable, the problem could be that the trigger does in many places something like this:
@variableName = value

when it should be:
variableName = value

or:
#VAR variableName {value}

Kjata
Reply with quote
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Fri Jul 19, 2002 11:08 pm   
 
okay ill try that, THANKS! what its doing is instead of #VAR etc its #VAR;etc dont know why its doing that though
Reply with quote
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Fri Jul 19, 2002 11:11 pm   
 
actually, when i removed the @ it got syntax errors ... you sure thats how its supossed to be?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jul 19, 2002 11:16 pm   
 
Seems like a mismathed brace or such is causing a #VAR command to be sent with no arguments. Since I think that is a mess and the trigger pattern is wrong, I am just going to rewrite it.

#VAR MoonStates {full|gibbous waning|half waning|crescent waning|new|crescent waxing|half waxing|gibbous waxing}
#VAR WorldGates {Rune 662, 746|Xaventry 625, 461|Lowangen 1177, 384|CTF Arena 967, 699|Sigil 502, 1281|Dungeon Deceit 1015, 1116|Maldra's Keep 1279, 1053|Templeton 1674, 541|Decara 1538, 430}
#TRIGGER {^Trigael: ~((*)~) Marabah: ~((*)~)} {World1=%ismember("%1",@MoonStates);World2=%eval(%ismember("%2",@MoonStates)+@World1);#IF (@World2>8) {#ADD World2 -8};#ECHO {%ansi(purple,hi)Worldgates:%ansi(green) %item(@WorldGates,@World1)%ansi(purple,hi) and%ansi(green) %item(@WorldGates,@World2}}

Just verify its acurracy as I may have mispotted the pattern.
Reply with quote
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Fri Jul 19, 2002 11:27 pm   
 
hrmm, that looks like it works, but it doesn't have a trigger for all the combo's, new, full is different than full, new ... i can just add them in though thanks :)
Reply with quote
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Fri Jul 19, 2002 11:33 pm   
 
okay i take that back, your trigger isn't echoing which ones are open =/ and
#TRIGGER {^Trigael: ~((*)~) Marabah: ~((*)~)} {World1=%ismember("%1",@MoonStates);World2=%eval(%ismember("%2",@MoonStates)+@World1);#IF (@World2>8) {#ADD World2 -8};#ECHO {%ansi(purple,hi)Worldgates:%ansi(green) %item(@WorldGates,@World1)%ansi(purple,hi) and%ansi(green) %item(@WorldGates,@World2}}
shoule be
#TRIGGER {^Trigael: ~((*)~) Marabah: ~((*)~)} {World1=%ismember("%1",@MoonStates);World2=%eval(%ismember("%2",@MoonStates)+@World1);#IF (@World2>8) {#ADD World2 -8};#ECHO {%ansi(purple,hi)Worldgates:%ansi(green) %item(@WorldGates,@World1)%ansi(purple,hi) and%ansi(green) %item(@WorldGates,@World2)}}
Reply with quote
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Fri Jul 19, 2002 11:42 pm   
 
okay, i took all the original triggs that set that variable, and rewrote the one the displays what gates are open, changed it from
^Trigael: ~((*)~) Marabah: ~((*)~)
to
^Trigael: ~(*~) Marabah: ~(*~)
and for some reason it works fine now
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jul 20, 2002 12:56 am   
 
Yup I got hasty after I saw the pattern and got it slightly off.

#VAR MoonStates {full|gibbous waning|half waning|crescent waning|new|crescent waxing|half waxing|gibbous waxing}
#VAR WorldGates {Rune 662, 746|Xaventry 625, 461|Lowangen 1177, 384|CTF Arena 967, 699|Sigil 502, 1281|Dungeon Deceit 1015, 1116|Maldra's Keep 1279, 1053|Templeton 1674, 541|Decara 1538, 430}
#TRIGGER {^Trigael: ~((*)~) Marabah: ~((*)~)} {World1=%ismember("%1",@MoonStates);World2=%ismember("%2",@MoonStates);#IF (@World2<8) {#ADD World2 @World1;#IF (@World2>8) {#ADD World2 -8}} {#IF (@World1=8) {World1=9;World2=1} {World2=9}};#ECHO {%ansi(purple,hi)Worldgates:%ansi(green) %item(@WorldGates,@World1)%ansi(purple,hi) and%ansi(green) %item(@WorldGates,@World2}}

I had failed to force Decara to last, also I failed to take the final quirk into acount, those should both be corrected now.
Reply with quote
snoogans
Novice


Joined: 28 Oct 2001
Posts: 43
Location: USA

PostPosted: Sat Jul 20, 2002 8:31 am   
 
heh your still missing the last parenthesis on the last trigger
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