|
tyh Beginner
Joined: 01 Feb 2004 Posts: 24 Location: United Kingdom
|
Posted: Sat Feb 26, 2005 9:04 am
what am I doing wrong trying to make a command stack? |
Im trying to create a stack that will sequentially fire off commands from a string list. Heres what I got :
Code: |
@qdone = 0
@qelement = 0
@questtodo = %1
%pop(questtodo)
#ala queststack *3 {
#if (not @qdone) {
#if (@qelement) {
qelement = 0
%pop(questtodo)
}
} {
gotoqm
stopquest
}
}
|
The procedure is passed a string list such as : #walk 5230|shop buy 1|#walk 4652|....
triggers fire off on completing a quest element and on quest completion setting the qdone and qelement variables, gotoqm walks to the quest master and stopquest resets the variables and untraps the alarm
The procedure doesnt work as I get output to the window of #walk 5230 and the message - Please elaborate , or similar
Whats going wrong? |
|
_________________ |
|
|
|
Zhiroc Adept
Joined: 04 Feb 2005 Posts: 246
|
Posted: Sat Feb 26, 2005 4:23 pm |
It appears that when you have a raw variable or function reference, the string generated is passed directly to the MUD. Use the #EXE command to do what you want, e.g. #EXE %pop(questtodo)
|
|
|
|
|
|
|
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
|
|