Sorry it's me again. In short:
I want a calculation that checks in a conditional branch if stealing an item will work. it should be based on the luk of a party member (here leader).
Thats the calculation I found on the internet, and I liked it, but somehow the maker always can't calculate it and gives 0 as an answer.
V(30) - supposed to be how hard it is to steal (lets say its 60, so it should be little more than 50/50 chance, without your luk)
My max Luk should be 100
If I try it with V(30) and 100 Luk, it always brings up 0 and I don't know if its just an writing error or something like this.
Or maby someone has another suggestion how I could calculate if the player could steal an item depending on ther luk-STAT and how hard it is in general.
I want a calculation that checks in a conditional branch if stealing an item will work. it should be based on the luk of a party member (here leader).
Thats the calculation I found on the internet, and I liked it, but somehow the maker always can't calculate it and gives 0 as an answer.
JavaScript:
rand(100) <= $gameVariables.value(30) + $gameParty.members()[0].luk * ( ( 100 - $gameVariables.value(30) ) / 100 )
V(30) - supposed to be how hard it is to steal (lets say its 60, so it should be little more than 50/50 chance, without your luk)
My max Luk should be 100
If I try it with V(30) and 100 Luk, it always brings up 0 and I don't know if its just an writing error or something like this.
Or maby someone has another suggestion how I could calculate if the player could steal an item depending on ther luk-STAT and how hard it is in general.