| Message |
hello!
I'm still very new to lua but I thought I would try something that seemed simple, but I got stuck! drat.
For starters, I am stuck on something that's probably simple, but I don't know how to store a word in a variable -
for instance, I want to have an alias that allows me to 'shortcut' making scrolls in my game, which is a 5 step process. I could make an alias for every spell I might want to make a scroll for, but this seemed like a more interesting solution -
I thought I could do something like
scribe_scroll = tostring (%1)
Note "Scroll String is: ", scribe_scroll)
but I keep getting 'Scroll String is: nil'
However, whenever I do get that problem solved, my next step will be (psuedo)
Send ("get parchment <container_keyword>")
Send ("hold parchment")
if scribe_scroll = <value>
Send ("scribe <target spell>")
else do
if scribe_scroll = <value>
Send ("scribe <target spell>")
else do
Note ("You didn't type the right keywords, check again")
end
Send ("remove scroll")
Send ("put scroll <container_keyword>")
Something like that?
|
,.~`'~.,Dance Magic Dance,.~`'~., | top |
|