take a look
if argument0 = spr_Sword_basic
{
show_menu("Equip|Drop|Examine",-1)
if menu =(0)
{
if global.right_arm = "free"
{
global.Attack +=2
global.right_arm = "Wooden Sword"
delete_item(spr_Sword_basic,obj_Sword_basic)
}
else if global.left arm = "free"
{
global.Attack +=2
global.left_arm = "Wooden Sword"
delete_item(spr_Sword_basic,obj_Sword_basic)
}}}
if menu =(1){drop_item(spr_Sword_basic)}
if menu =(2){script_execute(scr_custombox,font_1,bck_button,1,spr_button,"Wooden Sword# Attack +2")}
this is in the right click of the inventory tile (dont worry the postionaing in corrent) but when i try to right click any item i get this
___________________________________________
ERROR in
action number 1
of Mouse Event for Glob Right Pressed
for object obj_inventory:
In script right_inventory:
In script check_item_right:
Error in code at line 4:
if menu =(0)
^
at position 5: Unknown variable menu
but when it does work and i drop it it drops all the items or i examine and it examines all the items can you help me i have been working on it for 3 days











