Hey readers.
I've got a small question regarding a Jass function.
I've got a trigger that gives a unit a 30% chance to get a critical strike on a hit. (This is made by Rising_Dusk... Very great!)
However I want to change one thing.
He posted this system on wc3campaigns, so I'm 100% sure I'm allowed to change it.. However I don't really know how. I'm currently doing my best to learn as much as possible regarding Jass.
Here's the thing I want to change:
Currently it has a 30% chance to crit.
But I want to change this to:
((HeroAgilityofUnit/HeroLevelofUnit)*4,5)+(CritBonus/(HeroLevelofUnit/3)% chance to crit.
The "CritBonus" is an Integer I will increase or decrease using normal GUI. I don't know if it's possible to use GUI integers in Jass functions.
This is a rough formula I might change after a while..
I can make this in GUI.. But I don't know how to create this in Jass.
Is there someone who can tell me how?
Thanks alot!
I've got a small question regarding a Jass function.
I've got a trigger that gives a unit a 30% chance to get a critical strike on a hit. (This is made by Rising_Dusk... Very great!)
However I want to change one thing.
He posted this system on wc3campaigns, so I'm 100% sure I'm allowed to change it.. However I don't really know how. I'm currently doing my best to learn as much as possible regarding Jass.
Here's the thing I want to change:
Currently it has a 30% chance to crit.
But I want to change this to:
((HeroAgilityofUnit/HeroLevelofUnit)*4,5)+(CritBonus/(HeroLevelofUnit/3)% chance to crit.
The "CritBonus" is an Integer I will increase or decrease using normal GUI. I don't know if it's possible to use GUI integers in Jass functions.
This is a rough formula I might change after a while..
I can make this in GUI.. But I don't know how to create this in Jass.
Is there someone who can tell me how?
Thanks alot!