edb6377: Tue Oct 10, 2006 3:22 am |
|
Example of a switch and a nested switch
Code: |
#LOCAL $world1 $world2
#SWITCH (%1= "full") {
#SWITCH (%2= "full") {
$world1 = %replace( "Rune 662, 746", ",")
$world2 = %replace( "Xaventry 625, 461", ",")
} (%2= "gibbous waning") {
$world1 = %replace( "Rune 662, 746", ",")
$world2 = %replace( "Lowangen 1177, 384", ",")
} (%2= "gibbous waxing") {
$world1 = %replace( "Rune 662, 746", ",")
$world2 = %replace( "Ethereal Void ?", ",")
} (%2= "half waxing") {
$world1 = %replace( "Rune 662, 746", ",")
$world2 = %replace( "Templeton 1674, 541", ",")
} (%2= "half waning") {
$world1 = %replace( "Rune 662, 746", ",")
$world2 = %replace( "CTF Arena 967, 699", ",")
} (%2= "new") {
$world1 = %replace( "Rune 662, 746", ",")
$world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
} (%2= "crescent waning") {
$world1 = %replace( "Rune 662, 746", ",")
$world2 = %replace( "Sigil 502, 1281", ",")
} (%2= "crescent waxing") {
$world1 = %replace( "Rune 662, 746", ",")
$world2 = %replace( "Maldra's Keep 1279, 1053", ",")
}
} (%1="crescent waxing") {
#SWITCH (%2= "gibbous waning") {
$world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
$world2 = %replace( "Templeton 1674, 541", ",")
} (%2= "crescent waning") {
$world1 = %replace( "CTF Arena 967, 699", ",")
$world2 = %replace( "Xaventry 625, 461", ",")
} (%2= "crescent waxing") {
$world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
$world2 = %replace( "CTF Arena 697, 699", ",")
} (%2= "new") {
$world1 = %replace( "CTF Arena 967, 699", ",")
$world2 = %replace( "Lowangen 1177, 384", ",")
} (%2= "half waxing") {
$world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
$world2 = %replace( "Sigil 502, 1281", ",")
} (%2="half waning") {
$world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
$world2 = %replace( "Rune 662, 746", ",")
} (%2= "gibbous waxing") {
$world1 = %replace( "Seelie Castle ?", ",")
$world2 = %replace( "Templeton 1674, 541", ",")
} (%2= "full") {
$world1 = %replace( "CTF Arena 697, 699", ",")
$world2 = %replace( "Maldra's Keep 1279, 1053", ",")
}
} (%1= "gibbous waning") {
#SWITCH (%2= "full") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Lowangen 1177, 384", ",")
} (%2= "gibbous waning") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Arcane 967, 699", ",")
} (%2= "gibbous waxing") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Decara 1538, 430", ",")
} (%2= "half waxing") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Rune 662, 746", ",")
} (%2= "half waning") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Sigil 502, 1281", ",")
} (%2= "new") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Maldra's Keep 1279, 1053", ",")
} (%2= "crescent waning") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
} (%2= "crescent waxing") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Templeton 1674, 541", ",")
}
} (%1="Half Waning") {
#SWITCH (%2= "full") {
$world1 = %replace( "Lowangen 1177, 384", ",")
$world2 = %replace( "CTF Arena 967, 699", ",")
} (%2= "gibbous waning") {
$world1 = %replace( "Lowangen 1177, 384", ",")
$world2 = %replace( "Sigil 502, 1281", ",")
} (%2= "gibbous waxing") {
$world1 = %replace( "Lowangen 1177, 384", ",")
$world2 = %replace( "Decara 1538, 430", ",")
} (%2= "half waxing") {
$world1 = %replace( "Lowangen 1177, 384", ",")
$world2 = %replace( "Xaventry 625, 461", ",")
} (%2="half waning") {
$world1 = %replace( "Lowangen 1177, 384", ",")
$world2 = %replace( "CTF Arena 967, 699", ",")
} (%2= "new") {
$world1 = %replace( "Lowangen 1177, 384", ",")
$world2 = %replace( "Templeton 1674, 541", ",")
} (%2= "crescent waning") {
$world1 = %replace( "Lowangen 1177, 384", ",")
$world2 = %replace( "Maldra's Keep 1279, 1053", ",")
} (%2= "crescent waxing") {
$world1 = %replace( "Lowangen 1177, 384", ",")
$world2 = %replace( "Rune 662, 746", ",")
}
} (%1="cresent waning") {
#SWITCH (%2= "full") {
$world1 = %replace( "Arcane 967, 699", ",")
$world2 = %replace( "Sigil 502, 1281", ",")
} (%2= "gibbous waning") {
$world1 = %replace( "Arcane 967, 699", ",")
$world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
} (%2= "gibbous waxing") {
$world1 = %replace( "Sigil 502, 1281", ",")
$world2 = %replace( "Decara 1538, 430", ",")
} (%2= "half waxing") {
$world1 = %replace( "CTF Arena 967, 699", ",")
$world2 = %replace( "Lowangen 1177, 384", ",")
} (%2="half waning") {
$world1 = %replace( "CTF Arena 967, 699", ",")
$world2 = %replace( "Maldra's Keep 1279, 1053", ",")
} (%2= "new") {
$world1 = %replace( "Arcane 967, 699", ",")
$world2 = %replace( "Rune 662, 746", ",")
} (%2= "crescent waning") {
$world1 = %replace( "CTF Arena 967, 699", ",")
$world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
} (%2= "crescent waxing") {
$world1 = %replace( "CTF Arena 967, 699", ",")
$world2 = %replace( "Xaventry 625, 461", ",")
}
} (%1="new") {
#SWITCH (%2= "gibbous waning") {
$world1 = %replace( "Sigil 502, 1281", ",")
$world2 = %replace( "Maldra's Keep 1279, 1053", ",")
} (%2= "half waxing") {
$world1 = %replace( "Sigil 502, 1281", ",")
$world2 = %replace( "Arcane 967, 699", ",")
} (%2= "crescent waning") {
$world1 = %replace( "Sigil 502, 1281", ",")
$world2 = %replace( "Rune 662, 746", ",")
} (%2= "crescent waxing") {
$world1 = %replace( "Sigil 502, 1281", ",")
$world2 = %replace( "Xaventry 625, 461", ",")
} (%2= "new") {
$world1 = %replace( "Sigil 502, 1281", ",")
$world2 = %replace( "Lowangen 1177, 384", ",")
} (%2="half waning") {
$world1 = %replace( "Sigil 502, 1281", ",")
$world2 = %replace( "Templeton 1674, 541", ",")
} (%2= "gibbous waxing") {
$world1 = %replace( "Decara 1538, 430", ",")
$world2 = %replace( "Xaventry 625, 461", ",")
} (%2= "full") {
$world1 = %replace( "Sigil 502, 1281", ",")
$world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
}
} (%1="cresent waxing") {
#SWITCH (%2= "gibbous waning") {
$world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
$world2 = %replace( "Rune 662, 746", ",")
} (%2= "crescent waning") {
$world1 = %replace( "Maldra's Keep 1279, 1053", ",")
$world2 = %replace( "Lowangen 1177, 384", ",")
} (%2= "crescent waxing") {
$world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
$world2 = %replace( "Sigil 502, 1281", ",")
} (%2= "new") {
$world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
$world2 = %replace( "Arcane ?", ",")
} (%2= "half waxing") {
$world1 = %replace( "Maldra's Keep 1279, 1053", ",")
$world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
} (%2="half waning") {
$world1 = %replace( "Maldra's Keep 1279, 1053", ",")
$world2 = %replace( "Xaventry 625, 461", ",")
} (%2= "gibbous waxing") {
$world1 = %replace( "Seahag Isle 1752, 984", ",")
$world2 = %replace( "Lowangen 1177, 384", ",")
} (%2= "full") {
$world1 = %replace( "Dungeon Deceit 1015, 1116", ",")
$world2 = %replace( "Templeton 1674, 541", ",")
}
} (%1="gibbous waxing") {
#SWITCH (%2= "gibbous waning") {
$world1 = %replace( "Templeton 1674, 541", ",")
$world2 = %replace( "Xaventry 625, 461", ",")
} (%2= "crescent waning") {
$world1 = %replace( "Templeton 1674, 541", ",")
$world2 = %replace( "Arcane 967, 699", ",")
} (%2= "crescent waxing") {
$world1 = %replace( "Templeton 1674, 541", ",")
$world2 = %replace( "Dungeon Deceit 1015, 1116", ",")
} (%2= "new") {
$world1 = %replace( "Templeton 1674, 541", ",")
$world2 = %replace( "Sigil 502, 1281", ",")
} (%2= "half waxing") {
$world1 = %replace( "Templeton 1674, 541", ",")
$world2 = %replace( "Maldra's Keep 1279, 1053", ",")
} (%2="half waning") {
$world1 = %replace( "Xaventry 625, 461", ",")
$world2 = %replace( "Sigil 502, 1281", ",")
} (%2= "gibbous waxing") {
$world1 = %replace( "Hotel Hello ?", ",")
$world2 = %replace( "Rune 662, 746", ",")
} (%2= "full") {
$world1 = %replace( "Templeton 1674, 541", ",")
$world2 = %replace( "Rune 662, 746", ",")
}
}
#echo %ansi( hi, magenta)Worldgate from %ansi( hi, blue)$world1 %ansi( hi, magenta)to %ansi( hi, blue)$world2
|
|
|