|
iosman Beginner
Joined: 06 May 2019 Posts: 10
|
Posted: Sat Jul 06, 2019 4:07 pm
A little help with bringing a Zmud script to Cmud |
Hi,
Been trying to get this thing to work in Cmud 0xc004f074 for well over a week now and still no success. Not knowing what I'm doing isn't helping too much but I've read and reread every help file I can find and still no closer to a solution.
#ALIAS startmine {
#T+ mine1
#T+ mine2
minedir="%1"
mine %1
}
#TRIGGER "mine1" {You didn't find any resources.} {mine @minedir}
#TRIGGER "mine2" {You dig up * and drop it on a stack!} {mine @minedir}
#ALIAS stopmine {
#T- mine1
#T- mine2
minedir=""
}
The problem seems to be the %1 and Cmud, instead of it continuing along with mine e it returns a mine %1 which throws an error back from the mud. I'm at a loss how to get this to work, tried everything that I can think of and I know it's going to be something simple that is the problem. Maybe I can't see the forest for the trees as the saying goes. Any help of suggestions on this one would be very much appreciated..
Thanks
iosman |
|
Last edited by iosman on Sun Sep 15, 2019 3:38 pm; edited 2 times in total |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sat Jul 06, 2019 9:12 pm |
The issue is that you put the %1 in quotes, which treats it as a string and prevents it from being evaluated.
Get rid of those and you should be fine. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|