obj
MagicMissle
icon = 'MagicMissle.dmi'
Bolt
icon = 'Bolt.dmi'
Fireball
icon = 'Fireball.dmi'
turf/Click()
missile(/obj/Fireball.dmi, usr, usr.Click())
..()
loading Wiz game.dme
Wiz game.dm:45:error: missile: undefined proc
Wiz game.dmb - 1 error, 0 warnings (5/2/16 5:01 pm)
Problem description:
I am getting told that "missile" is an undefined proc. I don't understand what i am being told, may i get some help?
In this example if you click one of the projectile types (perhaps located within your inventory or some similar list?), it will set your projectile_type variable to the type of that object, and clicking on a turf will generate a missile() call based on that variable.
There's many better methods of handling stuff like this, but you probably need go gain a bit of a better grasp on the language before delving in too deep just yet.