mob
proc
Damage(min,dmg)
var/x = text2path("[min].val")
x -= dmg
src << x
Is there anything like text2var(), or how I could do it like that?
My intentions are like this: I got 6 variables that I want to choose from.
So, if I got 6 variables, named "a", "b", "c", "d", "e" and "f".
If I'd call the Damage(min,dmg) proc, I want to do it like this: Damage(a, strength.val * 4) (I use datums by the way (var/type = new(#,#)).
Could anyone please help me, provide me the information or tell me if it even exists? I think I just didn't look good enough.
- Rick
EDIT: Is the type of <code>min</code> variant?