Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: GoodMorning on May 30, 2016, 11:51:50 PM

Title: What does THIS button do?
Post by: GoodMorning on May 30, 2016, 11:51:50 PM
I'm trying to balance a "random effect" script.

So far, I've got a number of different events, some of which are very friendly, others... less so.
However, some things change the game balance significantly. (It's possible to get a Spore storm that is harmless to any unit not insta-killed, or for Digi to once again act as an impenetrable barrier to the Creeper)

Does anyone have recommendations for balancing? Currently it seems to jump between too friendly and too harsh.

There's a picture to go with it, otherwise children are invisible. Custom0 slot.
Title: Re: What does THIS button do?
Post by: Sorrontis on May 31, 2016, 01:14:28 AM
Well, then make a bunch of different options that are slightly good or slightly bad, and make those really harsh/good ones more rare.
Title: Re: What does THIS button do?
Post by: Builder17 on May 31, 2016, 08:58:50 AM
IMO you should fully remove these very gameplay affecting ones fully , scores in map could change lot because big luck element in map.
Title: Re: What does THIS button do?
Post by: J on May 31, 2016, 09:13:16 AM
For a better random distribution, don't choose one randomly each time, but put all effects in a list and shuffle it once all effects have been played once (like a playing cards deck). You can even put the most harsh/friendly ones on a fixed position in the list to reduce the luck element in the scores.
example

1. random
2. fixed super friendly
3. random
4. fixed super harsh
5. random
6. random
7. fixed super harsh

Every time the list iterator returns at #1, four random effect are distributed accros 1, 3, 5 and 6, making it unpredictable for the player.
Make sure either the first or last element is fixed to prevent the same effect happening two times in a row.
[close]
Title: Re: What does THIS button do?
Post by: Nebulous on May 31, 2016, 09:24:13 AM
You could also do a Select Random Number line, and then add a if-else for each number given. For the slightly good/bad, place more numbers in that if spot. Otherwise, put less for the worse/better ones.
Title: Re: What does THIS button do?
Post by: GoodMorning on May 31, 2016, 07:06:21 PM
I think that J's suggestion will work best. Thanks.
Title: Re: What does THIS button do?
Post by: Nebulous on May 31, 2016, 11:49:50 PM
Anytime.