ID:161527
 
Ok, so I'm trying to set up some passive skills like, dodge and block which will mod the basic dodging and blocking. So my skills are object and I try to my var called currmin which tells your current percent of the skill, but everytime I try and use it in my damage formula it doesn't work...
Yeah dude, I'm currently making a game that has passive skills. But I have no where to start. I was thinking, everytime a passive skill's level increases. Save the value of the bonuses you give in variables. So when you reset skills, you can just take the value you have with the saved variable. I took this idea from Ragnarok.
In response to Sentoku Uura
Well if you post your code it will be easier to help you.
In response to Subzero1
Subzero1 wrote:
Well if you post your code it will be easier to help you.
If I had a code I would have posted it....
In response to Lundex
How could something possibly "not work" if it doesn't exist?
In response to Garthor
Basically I set it up like this....I know it won't be any good but here's my example...

techs
parent_type = /obj
currmin = 1
passive
handtohand
name = "Hand-to-Hand Mastery"
currmin = 25
mob/proc
var/damage = src.attack*src.strmod+O.currmin - M.defense*M.endmod





In response to Lundex
Did you ever define O?
In response to Garthor
Yes, it still didn't work....I defined it as var/techs/attacks
and just obj/O, but neither of them work..
In response to Lundex
var/tech/attacks/whatever = locate() in attacks
whatever.stat
In response to Garthor
um.. did you try round(src.attack*blah blah)
In response to Generation
That is the wrong answer.