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
kent
Beginner


Joined: 03 Apr 2006
Posts: 29

PostPosted: Fri Apr 07, 2006 2:58 am   

GateScript
 
Hello again,

I have been trying to get this script to work but it doesn't display the "The current open worldgates are: "

#ALIAS moonfinder {#IF (@trigael="full") {#VAR trigael 0} {#IF (@trigael="gibbous waning") {#VAR trigael 1} {#IF (@trigael="half waning") {#VAR trigael 2} {#IF (@trigael="crescent waning") {#VAR trigael 3} {#IF (@trigael="new") {#VAR trigael 4} {#IF (@trigael="crescent waxing") {#VAR trigael 5} {#IF (@trigael="half waxing") {#VAR trigael 6} {#IF (@trigael="gibbous waxing") {#VAR trigael 7}}}}}}}}
#IF (@marabah="full") {#VAR marabah 1} {#IF (@marabah="gibbous waning") {#VAR marabah 2} {#IF (@marabah="half waning") {#VAR marabah 3} {#IF (@marabah="crescent waning") {#VAR marabah 4} {#IF (@marabah="new") {#VAR marabah 5} {#IF (@marabah="crescent waxing") {#VAR marabah 6} {#IF (@marabah="half waxing") {#VAR marabah 7} {#IF (@marabah="gibbous waxing") {#VAR marabah 8}}}}}}}}}

This section below i really don't understand what is wrong and why it isn't displaying or working at all..

#TRIGGER {{^Trigael: ~(&trigael~) Marabah: ~(&marabah~)} {moonfinder
#FILE 1 1.txt
#ECHO %ansi( high, magenta)The current open worldgates are: %ansi( @defcol)%read( 1, @trigael@marabah)
#CLOSE 1
#VAR defcol { high,white}}

.........................................................................................................

and then create this text file 1.txt in your Zmud directory

Here goes:

Rune(662,746) and Xaventry(607, 437)
Rune(662,746) and Lowangen(1159, 421)
Rune(662,746) and CTF Arena(1015,1116)
Rune(662,746) and Sigil(435, 1226)
Rune(662,746) and Dungeon Deceit(1254, 1071)
Rune(662,746) and Maldra's Keep(1304, 1092)
Rune(662,746) and Templeton(1619, 540)
Rune(662,746) and Ethereal Void(-1,-1)


Xaventry(607, 437) and Lowangen(1159, 421)
Xaventry(607, 437) and CTF Arena(1015,1116)
Xaventry(607, 437) and Sigil(435, 1226)
Xaventry(607, 437) and Dungeon Deceit(1254, 1071)
Xaventry(607, 437) and Maldra's Keep(1304, 1092)
Xaventry(607, 437) and Templeton(1619, 540)
Xaventry(607, 437) and Rune(662,746)
Xaventry(607, 437) and Decara(1579, 486)


Lowangen(1159, 421) and CTF Arena(1015,1116)
Lowangen(1159, 421) and Sigil(435, 1226)
Lowangen(1159, 421) and Dungeon Deceit(1254, 1071)
Lowangen(1159, 421) and Maldra's Keep(1304, 1092)
Lowangen(1159, 421) and Templeton(1619, 540)
Lowangen(1159, 421) and Rune(662,746)
Lowangen(1159, 421) and Xaventry(607, 437)
Lowangen(1159, 421) and Decara(1579, 486)


CTF Arena(1015,1116) and Sigil(435, 1226)
CTF Arena(1015,1116) and Dungeon Deceit(1254, 1071)
CTF Arena(1015,1116) and Maldra's Keep(1304, 1092)
CTF Arena(1015,1116) and Templeton(1619, 540)
CTF Arena(1015,1116) and Rune(662,746)
CTF Arena(1015,1116) and Xaventry(607, 437)
CTF Arena(1015,1116) and Lowangen(1159, 421)
Sigil(435, 1226) and Unseelie(438, 299)


Sigil(435, 1226) and Dungeon Deceit(1254, 1071)
Sigil(435, 1226) and Maldra's Keep(1304, 1092)
Sigil(435, 1226) and Templeton(1619, 540)
Sigil(435, 1226) and Rune(662,746)
Sigil(435, 1226) and Xaventry(607, 437)
Sigil(435, 1226) and Lowangen(1159, 421)
Sigil(435, 1226) and CTF Arena(1015,1116)
Decara(1579, 486) and Xaventry(607, 437)


Dungeon Deceit(1254, 1071) and Maldra's Keep(1304, 1092)
Dungeon Deceit(1254, 1071) and Templeton(1619, 540)
Dungeon Deceit(1254, 1071) and Rune(662,746)
Dungeon Deceit(1254, 1071) and Xaventry(607, 437)
Dungeon Deceit(1254, 1071) and Lowangen(1159, 421)
Dungeon Deceit(1254, 1071) and CTF Arena(1015,1116)
Dungeon Deceit(1254, 1071) and Sigil(435, 1226)
Templeton(1619, 540) and Seelie(43, 55)


Maldra's Keep(1304, 1092) and Templeton(1619, 540)
Maldra's Keep(1304, 1092) and Rune(662,746)
Maldra's Keep(1304, 1092) and Xaventry(607, 437)
Maldra's Keep(1304, 1092) and Lowangen(1159, 421)
Maldra's Keep(1304, 1092) and CTF Arena(1015,1116)
Maldra's Keep(1304, 1092) and Sigil(435, 1226)
Maldra's Keep(1304, 1092) and Dungeon Deceit(1254, 1071)
Seahag Isle(1113, 873) and Lowangen(1159, 421)


Templeton(1619, 540) and Rune(662,746)
Templeton(1619, 540) and Xaventry(607, 437)
Templeton(1619, 540) and Lowangen(1159, 421)
Templeton(1619, 540) and CTF Arena(1015,1116)
Templeton(1619, 540) and Sigil(435, 1226)
Templeton(1619, 540) and Dungeon Deceit(1254, 1071)
Templeton(1619, 540) and Maldra's Keep(1304, 1092)
Seahag Isle(1113, 873) and Rune(662,746)
Reply with quote
kent
Beginner


Joined: 03 Apr 2006
Posts: 29

PostPosted: Fri Apr 07, 2006 8:02 am   
 
oh yeah let tell you what version of Zmud i am using Zmud 7.20b
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Apr 07, 2006 9:10 pm   
 
You have an extra opening curly brace in your trigger pattern. Could be why your trigger isn't working, because it no longer matches the line.

Beyond that, you could optimize the alias by converting each set of nested #IF commands into a #CASE.

#case (%ismember(@trigael,"list of moon phases")) {trigael = 0} {} {} {} {} ...

It might not matter, but better code = faster play.
_________________
EDIT: I didn't like my old signature
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Mon Apr 10, 2006 11:49 am   
 
You might have also considered messaging AODOJO's member (the original script writers). They was a very messy way to do it. This script has been heavily modified since its inception. May want to check their MB or MMINFO (mine) for further updates to the script
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Fri Apr 14, 2006 3:44 am   
 
This script is a perfect example of why i cant wait for cmud :)

heres some different triggers for you as well. They work just fine and take less processing time as they dont have to iterate they just are :) This is one of the scripts i am going to redo as soon as CMUD comes out
I tried a few versions INCLUDING using stringed variables for this script to keep it down to a very minor 2-3 commands/aliases/variables This still performs fastest. Once cmud is released look for a much updated version.

Code:

#CLASS {Worldgate}
#VARIABLE world1 {}
#VARIABLE world2 {}
#TRIGGER {^Trigael: ~(full~)(%s)Marabah: ~(full~)} {
  @world1 = %replace( "Rune 662, 746", ",")
  @world2 = %replace( "Xaventry 625, 461", ",")
  }
#TRIGGER {^Trigael: ~(full~)(%s)Marabah: ~(gibbous waning~)} {
  @world1 = %replace( "Rune 662, 746", ",")
  @world2 = %replace( "Lowangen 1177, 384", ",")
  }
#TRIGGER {^Trigael: ~(full~)(%s)Marabah: ~(gibbous waxing~)} {
  @world1 = %replace( "Rune 662, 746", ",")
  @world2 = %replace( "Ethereal Void ?", ",")
  }
#TRIGGER {^Trigael: ~(full~)(%s)Marabah: ~(half waning~)} {
  @world1 = %replace( "Rune 662, 746", ",")
  @world2 = %replace( "CTF Arena 967, 699", ",")
  }
#TRIGGER {^Trigael: ~(full~)(%s)Marabah: ~(half waxing~)} {
  @world1 = %replace( "Rune 662, 746", ",")
  @world2 = %replace( "Templeton 1674, 541", ",")
  }
#TRIGGER {^Trigael: ~(full~)(%s)Marabah: ~(100~%~)} {
  @world1 = %replace( "Rune 662, 746", ",")
  @world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
  }
#TRIGGER {^Trigael: ~(full~)(%s)Marabah: ~(crescent waning~)} {
  @world1 = %replace( "Rune 662, 746", ",")
  @world2 = %replace( "Sigil 502, 1281", ",")
  }
#TRIGGER {^Trigael: ~(full~)(%s)Marabah: ~(crescent waxing~)} {
  @world1 = %replace( "Rune 662, 746", ",")
  @world2 = %replace( "Maldra's Keep 1279, 1053", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waning~)(%s)Marabah: ~(full~)} {
  @world1 = %replace( "Xaventry 625, 461", ",")
  @world2 = %replace( "Lowangen 1177, 384", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waning~)(%s)Marabah: ~(gibbous waning~)} {
  @world1 = %replace( "Xaventry 625, 461", ",")
  @world2 = %replace( "Arcane 967, 699", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waning~)(%s)Marabah: ~(half waxing~)} {
  @world1 = %replace( "Xaventry 625, 461", ",")
  @world2 = %replace( "Rune 662, 746", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waning~)(%s)Marabah: ~(half waning~)} {
  @world1 = %replace( "Xaventry 625, 461", ",")
  @world2 = %replace( "Sigil 502, 1281", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waning~)(%s)Marabah: ~(crescent waning~)} {
  @world1 = %replace( "Xaventry 625, 461", ",")
  @world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waning~)(%s)Marabah: ~(crescent waxing~)} {
  @world1 = %replace( "Xaventry 625, 461", ",")
  @world2 = %replace( "Templeton 1674, 541", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waning~)(%s)Marabah: ~(100~%~)} {
  @world1 = %replace( "Xaventry 625, 461", ",")
  @world2 = %replace( "Maldra's Keep 1279, 1053", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waning~)(%s)Marabah: ~(gibbous waxing~)} {
  @world1 = %replace( "Xaventry 625, 461", ",")
  @world2 = %replace( "Decara 1538, 430", ",")
  }
#TRIGGER {^Trigael: ~(half waning~)(%s)Marabah: ~(gibbous waning~)} {
  @world1 = %replace( "Lowangen 1177, 384", ",")
  @world2 = %replace( "Sigil 502, 1281", ",")
  }
#TRIGGER {^Trigael: ~(half waning~)(%s)Marabah: ~(half waxing~)} {
  @world1 = %replace( "Lowangen 1177, 384", ",")
  @world2 = %replace( "Xaventry 625, 461", ",")
  }
#TRIGGER {^Trigael: ~(half waning~)(%s)Marabah: ~(crescent waning~)} {
  @world1 = %replace( "Lowangen 1177, 384", ",")
  @world2 = %replace( "Maldra's Keep 1279, 1053", ",")
  }
#TRIGGER {^Trigael: ~(half waning~)(%s)Marabah: ~(crescent waxing~)} {
  @world1 = %replace( "Lowangen 1177, 384", ",")
  @world2 = %replace( "Rune 662, 746", ",")
  }
#TRIGGER {^Trigael: ~(half waning~)(%s)Marabah: ~(100~%~)} {
  @world1 = %replace( "Lowangen 1177, 384", ",")
  @world2 = %replace( "Templeton 1674, 541", ",")
  }
#TRIGGER {^Trigael: ~(half waning~)(%s)Marabah: ~(half waning~)} {
  @world1 = %replace( "Lowangen 1177, 384", ",")
  @world2 = %replace( "CTF Arena 967, 699", ",")
  }
#TRIGGER {^Trigael: ~(half waning~)(%s)Marabah: ~(gibbous waxing~)} {
  @world1 = %replace( "Lowangen 1177, 384", ",")
  @world2 = %replace( "Decara 1538, 430", ",")
  }
#TRIGGER {^Trigael: ~(half waning~)(%s)Marabah: ~(full~)} {
  @world1 = %replace( "Lowangen 1177, 384", ",")
  @world2 = %replace( "CTF Arena 967, 699", ",")
  }
#TRIGGER {^Trigael: ~(crescent waning~)(%s)Marabah: ~(gibbous waning~)} {
  @world1 = %replace( "Arcane 967, 699", ",")
  @world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
  }
#TRIGGER {^Trigael: ~(crescent waning~)(%s)Marabah: ~(half waxing~)} {
  @world1 = %replace( "CTF Arena 967, 699", ",")
  @world2 = %replace( "Lowangen 1177, 384", ",")
  }
#TRIGGER {^Trigael: ~(crescent waning~)(%s)Marabah: ~(crescent waning~)} {
  @world1 = %replace( "CTF Arena 967, 699", ",")
  @world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
  }
#TRIGGER {^Trigael: ~(crescent waning~)(%s)Marabah: ~(half waning~)} {
  @world1 = %replace( "CTF Arena 967, 699", ",")
  @world2 = %replace( "Maldra's Keep 1279, 1053", ",")
  }
#TRIGGER {^Trigael: ~(crescent waning~)(%s)Marabah: ~(crescent waxing~)} {
  @world1 = %replace( "CTF Arena 967, 699", ",")
  @world2 = %replace( "Xaventry 625, 461", ",")
  }
#TRIGGER {^Trigael: ~(crescent waning~)(%s)Marabah: ~(100~%~)} {
  @world1 = %replace( "Arcane 967, 699", ",")
  @world2 = %replace( "Rune 662, 746", ",")
  }
#TRIGGER {^Trigael: ~(crescent waning~)(%s)Marabah: ~(gibbous waxing~)} {
  @world1 = %replace( "Sigil 502, 1281", ",")
  @world2 = %replace( "Decara 1538, 430", ",")
  }
#TRIGGER {^Trigael: ~(crescent waning~)(%s)Marabah: ~(full~)} {
  @world1 = %replace( "Arcane 967, 699", ",")
  @world2 = %replace( "Sigil 502, 1281", ",")
  }
#TRIGGER {^Trigael: ~(100~%~)(%s)Marabah: ~(gibbous waning~)} {
  @world1 = %replace( "Sigil 502, 1281", ",")
  @world2 = %replace( "Maldra's Keep 1279, 1053", ",")
  }
#TRIGGER {^Trigael: ~(100~%~)(%s)Marabah: ~(half waxing~)} {
  @world1 = %replace( "Sigil 502, 1281", ",")
  @world2 = %replace( "Arcane 967, 699", ",")
  }
#TRIGGER {^Trigael: ~(100~%~)(%s)Marabah: ~(crescent waning~)} {
  @world1 = %replace( "Sigil 502, 1281", ",")
  @world2 = %replace( "Rune 662, 746", ",")
  }
#TRIGGER {^Trigael: ~(100~%~)(%s)Marabah: ~(crescent waxing~)} {
  @world1 = %replace( "Sigil 502, 1281", ",")
  @world2 = %replace( "Xaventry 625, 461", ",")
  }
#TRIGGER {^Trigael: ~(100~%~)(%s)Marabah: ~(100%~)} {
  @world1 = %replace( "Sigil 502, 1281", ",")
  @world2 = %replace( "Lowangen 1177, 384", ",")
  }
#TRIGGER {^Trigael: ~(100~%~)(%s)Marabah: ~(half waning~)} {
  @world1 = %replace( "Sigil 502, 1281", ",")
  @world2 = %replace( "Templeton 1674, 541", ",")
  }
#TRIGGER {^Trigael: ~(100~%~)(%s)Marabah: ~(gibbous waxing~)} {
  @world1 = %replace( "Decara 1538, 430", ",")
  @world2 = %replace( "Xaventry 625, 461", ",")
  }
#TRIGGER {^Trigael: ~(100~%~)(%s)Marabah: ~(full~)} {
  @world1 = %replace( "Sigil 502, 1281", ",")
  @world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
  }
#TRIGGER {^Trigael: ~(crescent waxing~)(%s)Marabah: ~(gibbous waning~)} {
  @world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
  @world2 = %replace( "Templeton 1674, 541", ",")
  }
#TRIGGER {^Trigael: ~(crescent waxing~)(%s)Marabah: ~(crescent waning~)} {
  @world1 = %replace( "CTF Arena 967, 699", ",")
  @world2 = %replace( "Xaventry 625, 461", ",")
  }
#TRIGGER {^Trigael: ~(crescent waxing~)(%s)Marabah: ~(crescent waxing~)} {
  @world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
  @world2 = %replace( "CTF Arena 697, 699", ",")
  }
#TRIGGER {^Trigael: ~(crescent waxing~)(%s)Marabah: ~(100~%~)} {
  @world1 = %replace( "CTF Arena 967, 699", ",")
  @world2 = %replace( "Lowangen 1177, 384", ",")
  }
#TRIGGER {^Trigael: ~(crescent waxing~)(%s)Marabah: ~(half waxing~)} {
  @world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
  @world2 = %replace( "Sigil 502, 1281", ",")
  }
#TRIGGER {^Trigael: ~(crescent waxing~)(%s)Marabah: ~(half waning~)} {
  @world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
  @world2 = %replace( "Rune 662, 746", ",")
  }
#TRIGGER {^Trigael: ~(crescent waxing~)(%s)Marabah: ~(gibbous waxing~)} {
  @world1 = %replace( "Seelie Castle ?", ",")
  @world2 = %replace( "Templeton 1674, 541", ",")
  }
#TRIGGER {^Trigael: ~(crescent waxing~)(%s)Marabah: ~(full~)} {
  @world1 = %replace( "CTF Arena 697, 699", ",")
  @world2 = %replace( "Maldra's Keep 1279, 1053", ",")
  }
#TRIGGER {^Trigael: ~(half waxing~)(%s)Marabah: ~(gibbous waning~)} {
  @world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
  @world2 = %replace( "Rune 662, 746", ",")
  }
#TRIGGER {^Trigael: ~(half waxing~)(%s)Marabah: ~(half waxing~)} {
  @world1 = %replace( "Maldra's Keep 1279, 1053", ",")
  @world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
  }
#TRIGGER {^Trigael: ~(half waxing~)(%s)Marabah: ~(crescent waning~)} {
  @world1 = %replace( "Maldra's Keep 1279, 1053", ",")
  @world2 = %replace( "Lowangen 1177, 384", ",")
  }
#TRIGGER {^Trigael: ~(half waxing~)(%s)Marabah: ~(crescent waxing~)} {
  @world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
  @world2 = %replace( "Sigil 502, 1281", ",")
  }
#TRIGGER {^Trigael: ~(half waxing~)(%s)Marabah: ~(100~%~)} {
  @world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
  @world2 = %replace( "Arcane ?", ",")
  }
#TRIGGER {^Trigael: ~(half waxing~)(%s)Marabah: ~(half waning~)} {
  @world1 = %replace( "Maldra's Keep 1279, 1053", ",")
  @world2 = %replace( "Xaventry 625, 461", ",")
  }
#TRIGGER {^Trigael: ~(half waxing~)(%s)Marabah: ~(gibbous waxing~)} {
  @world1 = %replace( "Seahag Isle 1752, 984", ",")
  @world2 = %replace( "Lowangen 1177, 384", ",")
  }
#TRIGGER {^Trigael: ~(half waxing~)(%s)Marabah: ~(full~)} {
  @world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
  @world2 = %replace( "Templeton 1674, 541", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waxing~)(%s)Marabah: ~(gibbous waning~)} {
  @world1 = %replace( "Templeton 1674, 541", ",")
  @world2 = %replace( "Xaventry 625, 461", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waxing~)(%s)Marabah: ~(crescent waning~)} {
  @world1 = %replace( "Templeton 1674, 541", ",")
  @world2 = %replace( "Arcane 967, 699", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waxing~)(%s)Marabah: ~(half waxing~)} {
  @world1 = %replace( "Templeton 1674, 541", ",")
  @world2 = %replace( "Maldra's Keep 1279, 1053", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waxing~)(%s)Marabah: ~(crescent waxing~)} {
  @world1 = %replace( "Templeton 1674, 541", ",")
  @world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waxing~)(%s)Marabah: ~(100~%~)} {
  @world1 = %replace( "Templeton 1674, 541", ",")
  @world2 = %replace( "Sigil 502, 1281", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waxing~)(%s)Marabah: ~(half waning~)} {
  @world1 = %replace( "Templeton 1674, 541", ",")
  @world2 = %replace( "Lowangen 1177, 384", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waxing~)(%s)Marabah: ~(full~)} {
  @world1 = %replace( "Templeton 1674, 541", ",")
  @world2 = %replace( "Rune 662, 746", ",")
  }
#TRIGGER {^Trigael: ~(gibbous waxing~)(%s)Marabah: ~(gibbous waxing~)} {
  @world1 = %replace( "Hotel Hello ?", ",")
  @world2 = %replace( "Rune 662, 746", ",")
  }
#TRIGGER {^Trigael: ~((*)~)(%s)Marabah: ~((*)~)} {#ECHO %ansi( hi, magenta)Worldgate from %ansi( hi, blue)@world1 %ansi( hi, magenta)to %ansi( hi, blue)@world2}
#CLASS 0
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