mob/var
AOE1=0
AOE2=0
AOE3=0
AOE4=0
AOE5=0
AOE6=0
AOE7=0
AOE8=0
AOE9=0
AOE0=0
obj/MagikPlates
var/Placed=0
MouseDrop(obj/over_object,src_location,over_location,src_control,over_control,params)
if(istype(over_object,/obj/AoE))
var/obj/AoE/C=over_object
if(src.Placed== 0)
src.Placed=1
if(C.Value == 1 && usr.AOE1==0)
src.screen_loc="2,1"
usr.client.screen += src
usr.AOE1=1
if(C.Value == 2 && usr.AOE2==0)
src.screen_loc="3,1"
usr.client.screen += src
usr.AOE2=1
if(C.Value == 3 && usr.AOE3==0)
src.screen_loc="4,1"
usr.client.screen += src
usr.AOE3=1
if(C.Value == 4 && usr.AOE4==0)
src.screen_loc="5,1"
usr.client.screen += src
usr.AOE4=1
if(C.Value == 5 && usr.AOE5==0)
src.screen_loc="6,1"
usr.client.screen += src
usr.AOE5=1
if(C.Value == 6 && usr.AOE6==0)
src.screen_loc="7,1"
usr.client.screen += src
usr.AOE6=1
if(C.Value == 7 && usr.AOE7==0)
src.screen_loc="8,1"
usr.client.screen += src
usr.AOE7=1
if(C.Value == 8 && usr.AOE8==0)
src.screen_loc="9,1"
usr.client.screen += src
usr.AOE8=1
if(C.Value == 9 && usr.AOE9==0)
src.screen_loc="10,1"
usr.client.screen += src
usr.AOE9=1
if(C.Value == 0 && usr.AOE0==0)
src.screen_loc="11,1"
usr.client.screen += src
usr.AOE0=1
else
usr<<"That spot is already taken"
return
verb
Remove_Macro()
if(src.Placed==1)
src.Placed=0
usr.client.screen-=src
obj/AoE
icon='AoE.dmi'
var/Used=0
var/Value
var/ifAOE=1
Uno
icon_state="1"
screen_loc="2,1"
Value=1
pixel_y=100
Dos
icon_state="2"
screen_loc="3,1"
Value=2
Tres
icon_state="3"
screen_loc="4,1"
Value=3
Quatro
icon_state="4"
screen_loc="5,1"
Value=4
Cinco
icon_state="5"
screen_loc="6,1"
Value=5
Seis
icon_state="6"
screen_loc="7,1"
Value=6
Siete
icon_state="7"
screen_loc="8,1"
Value=7
Ocho
icon_state="8"
screen_loc="9,1"
Value=8
Nueve
icon_state="9"
screen_loc="10,1"
Value=9
Cero
icon_state="0"
screen_loc="11,1"
Value=0
Edge
icon_state="Edge"
screen_loc="12,1 to 16,1"
ifAOE=0
End
icon_state="End"
screen_loc="17,1"
ifAOE=0
Problem description:
Well I'm not sure if this goes here or in how to but I'm trying to make it so when you drag a magikplate into one of the hub slots in puts it in for faster casting. The dragging into the slots works but while taking it out I'm not sure how you would drag it from the slot to elsewhere getting rid of the icon. also when I use the verb it gets rid of the icon but I cannot replace there...
Ok I have this when i place something into a slot it works then i take it out by dragging it onto map NOW PROBLEM, when i try to place again it no worky nothing happens