dudeim
New Member
- Reaction score
- 22
Hey,
I'm creating my first textmacro but it keeps giving me an error.
and this is the error posted in the log: lua:2: attempt to concatenate global 'hotkey' (a nil value)
I just copied and paste a little and I don't really have a clue what I'm doing so hope anyone could point me in the good direction.
Edit: updated script to the newest and with a new problem: External not found in config file: ""
I'm creating my first textmacro but it keeps giving me an error.
JASS:
//this is how I call it
//! runtextmacro Create("0","2","Q")
//! textmacro Create takes x, y, hotkey
//! externalblock extension=lua ObjectMerger $FILENAME$ --gives an error in this line
//! i setobjecttype("abilities")
//! i createobject("AEev","0".."$hotkey$".."01")
//! i makechange(current,"aart","ReplaceableTextures\\CommandButtons\\BTNnumber1.blp")
//! i makechange(current,"arar","")
//! i makechange(current,"arac","other")
//! i makechange(current,"anam","One")
//! i makechange(current,"ansf","(Hotkey ".."$hotkey$"..")")
//! i makechange(current,"alev",1)
//! i makechange(current,"Eev1",1,0)
//! i makechange(current,"aub1",1,"")
//! i makechange(current,"abpx",$y$)
//! i makechange(current,"abpy",$x$)
//! i makechange(current,"aher",1)
//! i makechange(current,"arlv",1)
//! endexternalblock
//! endtextmacro
and this is the error posted in the log: lua:2: attempt to concatenate global 'hotkey' (a nil value)
I just copied and paste a little and I don't really have a clue what I'm doing so hope anyone could point me in the good direction.
Edit: updated script to the newest and with a new problem: External not found in config file: ""