Topic was automatically imported from the old Question2Answer platform.
Asked By
dellfenian
I am trying to make a variable that will hold the type of weapon the player has equipped as a string and have different weapon types have varying skill levels that affect the damage done. so say you have a sword skill of 2 and a club skill of 1 i want to be able to call in the weapon type to determine which variable is being used. in my head it looks something along the lines of…
var weaponType = “sword”
var swordSkill = 2
var clubSkill = 1
as is the case with many things for me this doesnt translate properly to the code because i am not entirely sure of the correct syntax for it.
thanks for any and all help