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
Monsoon
Newbie


Joined: 11 Jun 2003
Posts: 9
Location: USA

PostPosted: Tue Mar 16, 2004 6:30 pm   

quest trigger script plz help
 
ok along time ago
i posted a note bout quest triggers
and this guy helped me out wonderfully
however i didnt have the newest version of zmud so that trigger wouldnt wok
but now i do have the lastest version
and im tryin to get it goin however it doesnt work properly
almost tho
thats where i need ur help
what im tryin to do is
make a quest trigger that looks like this

#CLASS {quest}
#ADDK {^ A silvery blue wand.} {travel 'drow master';k master;get wand cor;com wand}
#ADDK {^ A metal wand.} {travel binder;k binder;get key cor;w;uo cab;get wand cab;com wand}
#ADDK {^ A spiked collar.} {travel calico;k cal;get col cor;com col}
#ADDK {^ Milk bladder.} {travel ewe;k ewe;get blad cor;com blad}
#ADDK {^ A katana.} {travel crystal;.e5n2e;get kat;com kat}
#ADDK {^ Scarlet ribbon.} {travel 'master pixie';k pix;get rib cor;com rib}
#ADDK {^ A bottle of local specialty.} {travel waiter;k waiter; get local cor; com local}
#TR QuestCard {You still need to find the following:} {#VAR QuestItems {}}
#COND {(*).} {#ADDI QuestItems {%1}} {LoopLines|Param=4}
#COND {} {#IF (%ismember( "A Silver Blue Wand", @QuestItems) OR %ismember( "A Metal Wand", @QuestItems)) {drop card;sac card} {#IF (%iskey( @QuestCommands, %item( @QuestItems, 1))) {#EXEC %db( @QuestCommands, %item( @QuestItems, 1))} {#SAY Unknown Quest Item: %item( @QuestItems, 1)};#IF (%iskey( @QuestCommands, %item( @QuestItems, 2))) {#EXEC %db( @QuestCommands, %item( @QuestItems, 2))} {#SAY Unknown Quest Item: %item( @QuestItems, 2)};#IF (%iskey( @QuestCommands, %item( @QuestItems, 3))) {#EXEC %db( @QuestCommands, %item( @QuestItems, 3))} {#SAY Unknown Quest Item: %item( @QuestItems, 3)};#IF (%iskey( @QuestCommands, %item( @QuestItems, 4))) {#EXEC %db( @QuestCommands, %item( @QuestItems, 4))} {#SAY Unknown Quest Item: %item( @QuestItems, 4)}}} {Wait|Param=100}
#CLASS 0[/b]


now what happens is
when i perform the trigger by typing complete card
it returns the items as uknown
if u could tell me where the error is id greatly appreciate it
thanx much
xkiller
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Mar 16, 2004 11:12 pm   
 
Change your #ADDKEY commands. They require the variable name. They don't need "^ " at the beginning of each key.
#ADDK QuestCommands {A silvery blue wand.} {travel 'drow master';k master;get wand cor;com wand}
Reply with quote
Monsoon
Newbie


Joined: 11 Jun 2003
Posts: 9
Location: USA

PostPosted: Tue Mar 16, 2004 11:34 pm   
 
awesome ok thanx man
one more question
i got it to work
and i found that i had many quest items that i couldnt do
so i think it would be easier
instead of sayin if it contains a silver blue wand or a metal wand
to have a a variable
that i can just type item names into
and then the trigger will lookinto the variable
and see if silver blue wand is in the variable
that way incase i have like 12 or more items
itll be more efficient

thanx a bunch:)
monsoon
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