mob/verb |
this shows the basic variable im using when defining dmg in a melee attack.
mob |
this is the proc im trying to use to call Weapon_dmg, which im trying to define under the obj/Items/Weapons/(weapon, aka knife in this case) file
Weapons |
the problem im having is that in the proc of GetMeleeDamage() Weapon_dmg is coming up as undefined. I need to know how to 'transplant' the var amount(in this case the 10 weapon damage) to the proc in the mob file. I intend to define Weapon_dmg differently for each weapon i code. If there is a better way to do this please feel free to suggest another method of defining the variable, but the basic problem im having is the variable is coming up undefined in the mob/proc. and please, if there is any suggestions, corrections, anything that looks off or sloppy please correct me with a full explanation so i know exactly what to do in the future. I'm just beginning to code things in my test game, which if i get things set up right will turn into my larger project, but I'm a newb to all this and i only have a very, very elementary understanding of things. As i await any response i will be re-reading the DM guide trying to better grasp some of the code in it.

This allow you change the amount of the Weapon_dmg variable with out rewrite your proc code