![]() |
|
#5
|
||||
|
||||
|
To be honest with you , i had no idea what i did. I saw your post and decided to experiment . My logic behind the numbers was that the game rolls a number ranging from 0 to 100 to decide what the reward will be...
if r < 97 then (...so only if the number rolled is higher then 97 the gold will be generated with that amount .) Boxgen.parcount( "money", "*1" ) -- ãåíåðèì äåíåã Mini Another example. K = K - 15 (any number below this will generate gold) if K < 0 then local r = Boxgen.rnd(100) if r < 20 then (if the number rolled is between 15 and 20 you get 3 crystals) Boxgen.parcount( "crystals", "3" ) elseif r < 50 then (if number is between 20 and 50 you get 5 crystals) Boxgen.parcount( "crystals", "5" ) elseif r < 65 then (and so on ) Boxgen.parcount( "crystals", "10" ) Again , this is how i thought the system works. It might be wrong , but it seems is working. |
|
|