S
Smenkare
Guest
I saw here some drop% codes but they seem "static". My idea is:
I have 6 items which boss can drop : A, B, C, D, E, F (for example)
There is variable itemCount, every item has it. Through the game it changes, before a boss fight it looks like A x 1, B x 2, C x 1, D x 4, E x 5 (for example)
When Boss dies he drops items A, C, D from the current pool, cause we didnt make required things for other items he can drop through the game. So we have one item A, one item C and four items D. The game engine creates them all, random pick one which we can loot, the rest is destroyed. Chances are A 16%, C 16%, D 64%.
This system is not so accurate but its the one which would work for me. I need two variables with item multiplier and the current pool of items which can drop.
Now my question is, is there any better way to do system like this one, and as better i understand faster and simpler. My other question is what commands should i use, gml is not my strong side. My variable current pool is active for A, C, D. So i should use some command to create all items with true value is this variable and loop it for D? The rest of created items can be outside game window and i will just destroy them after picking item from the boss i think. Please help me with this idea and im sorry for my english, i did my best with trying to explain. Thank you for your help and time.
I have 6 items which boss can drop : A, B, C, D, E, F (for example)
There is variable itemCount, every item has it. Through the game it changes, before a boss fight it looks like A x 1, B x 2, C x 1, D x 4, E x 5 (for example)
When Boss dies he drops items A, C, D from the current pool, cause we didnt make required things for other items he can drop through the game. So we have one item A, one item C and four items D. The game engine creates them all, random pick one which we can loot, the rest is destroyed. Chances are A 16%, C 16%, D 64%.
This system is not so accurate but its the one which would work for me. I need two variables with item multiplier and the current pool of items which can drop.
Now my question is, is there any better way to do system like this one, and as better i understand faster and simpler. My other question is what commands should i use, gml is not my strong side. My variable current pool is active for A, C, D. So i should use some command to create all items with true value is this variable and loop it for D? The rest of created items can be outside game window and i will just destroy them after picking item from the boss i think. Please help me with this idea and im sorry for my english, i did my best with trying to explain. Thank you for your help and time.