Electric cat
Member
Working in a weapons' menu pop up fir the select button, but I continue to get An illegal instruction. I have my .nam file in the nametables and believe I have it set to see this file too. attached Is the input code too.
MACRO DrawBox arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8
;arg 0 = box x origin
;arg 1 = box y origin
;arg 2 = box width
;arg 3 = box height
;arg 4 = box att width
;arg 5 = box att height
;arg 6 = 0= show sprites, 1 = hide sprites
;arg 7 = just refresh the box
;arg 8 = use textbox or just use blackout and attribute?
Oonan said:If you click on defined scripts you can bring up the macro definition. On the right hand side, of the defined scripts, is a button that says macros, along with a box. If the macros are not visible, try expanding the screen and pressing the macros button. Look through the list and find DrawBox, click on it. There is a very small line at the bottom of the screen that you can click and drag up, there you will see the code for DrawBox.
DrawBox takes 9 arguments, you only gave 8. They are as followed: box x origin, box y origin, box width, box height, box att width, box att height, 0/1 hide show sprites, just refresh box, use text box or just use blackout and attribute.
Code:MACRO DrawBox arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 ;arg 0 = box x origin ;arg 1 = box y origin ;arg 2 = box width ;arg 3 = box height ;arg 4 = box att width ;arg 5 = box att height ;arg 6 = 0= show sprites, 1 = hide sprites ;arg 7 = just refresh the box ;arg 8 = use textbox or just use blackout and attribute?
Hopefully that helps, you can also look at DrawBox.asm found in GameEngineData\Routines\Basic\System\Macros\ or replace Basic with Basic_NoScroll folder.