So here's what I'm trying to do"
have some integer variables :
common
uncommon
rare
Ultra
then call a common event (or script ) that does the following:
var loot_rng_total = (common + uncommon + rare + Ultra)
var loot_rng = random number between 1 and loot_rng_total
if
loot_rng < common
call plugin command A
else if
loot_rng < (common + Uncommon)
call plugin command B
else if
loot_rng < (common + Uncommon + rare)
call plugin command C
else
call plugin command D
I'm basically trying to have this loot tables plugin call a plugin command instead of giving an item
https://forums.rpgmakerweb.com/index.php?threads/random-loot.71822/
I tried doing this with common events but failed to sum multiple variables without making dozens of lines.
I also failed to randomize a number based on a variable.
Any help appreciated
have some integer variables :
common
uncommon
rare
Ultra
then call a common event (or script ) that does the following:
var loot_rng_total = (common + uncommon + rare + Ultra)
var loot_rng = random number between 1 and loot_rng_total
if
loot_rng < common
call plugin command A
else if
loot_rng < (common + Uncommon)
call plugin command B
else if
loot_rng < (common + Uncommon + rare)
call plugin command C
else
call plugin command D
I'm basically trying to have this loot tables plugin call a plugin command instead of giving an item
https://forums.rpgmakerweb.com/index.php?threads/random-loot.71822/
I tried doing this with common events but failed to sum multiple variables without making dozens of lines.
I also failed to randomize a number based on a variable.
Any help appreciated