Please help calculating, I suck at math :/

FannyShaver

Well-Known Member
Reaction score
31
Let's say there is an ability which's effect starts ONLY at level 10 and has a chance to cast a few effects on the target, that's why it needs triggering.

10 - 30%
20 - 37.5%
30 - 45%
40 - 52.5%
50 - 60%
60 - 67.5%
70 - 75%
80 - 82.5%
90 - 90%
100 - 97.5%

I don't need triggering help, just making an arithmetic calculation of the chance :/ I am completely out of ideas. Thanks for any help.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
if a random integer between 1 and 1000 is less than %x100 then do the actions
so rank 1, if random integer is less than 300
rank 2 less than 375
etc
 

FannyShaver

Well-Known Member
Reaction score
31
I guess it will have to include an ability level check in the integer somehow.
/edit

Random integer 1-1000
RI =< 200+ (75xabilitylvl)
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
225+(75x ability lvl) to get your exact parameters
but you get the picture
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Trigger:
  • Set TempInt = (Level of YourAbiliity for YourUnit)
    • Set TempReal = (22.50 + (7.50 x ((Real(TempInt)) / 10.00)))
    • Set TempReal2 = (Random real number between 0.00 and 100.00)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • TempReal2 Less than or equal to TempReal
      • Then - Actions
        • YourActions
      • Else - Actions
 

keychup

Active Member
Reaction score
34
If random real from 0.00 to 100.00 is less than or equal to (22.5 + (7.5 x ConvertInteger Level of ability to Real))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top