Megaquarium

Megaquarium

What will you create?
Access an ocean of content for Megaquarium created by players like you. New animals, decorations, tanks and more are available to expand your game and tailor it to your liking.
Learn More
stlnegril9 32 18 Sep, 2020 @ 11:57am
do not make infinite loop Campaign Sections
Obviously bad practice, but if you accidentally make a self-referential, infinite loop section in a Custom Campaign, the game will continuously grant the reward (from doOnComplete), open it again, grant ad infinitem until game is killed or paused.

e.g.
{
"sectionId":"AAA_main1",
"reward":{"money":2000},
"objectives": [
...
],
"doOnComplete":[{"moveOnToSection":"AAA_main1"},{"money":2000}],
},

(should've been moveOnToSection AAA_main2 or something else)
< >
Showing 1-2 of 2 comments
Twice Circled  [developer] 3 19 Sep, 2020 @ 6:35am 
^_^
stlnegril9 32 19 Sep, 2020 @ 8:32am 
Actually rethinking that maybe this cold be used/exploited to do something more useful with "timer" and some "unlock"/"lock". (it may actually be "trigger" but I know I've seen campaigns that do the unlock/lock).

e.g. trigger a reward of X Science points for every day that Aquarium has 10 Coldwater animals requirements met for 4 days running and then stop. (If the timer can reset when lock/unlock cycle happens).

Or maybe a repeating merchant trade, etc.
< >
Showing 1-2 of 2 comments
Per page: 1530 50