So what I want to do is make a variable that starts out at a number, but have that number change as it's used. Like the PArameter arc in the Hero tab, but something I make using variabes and script calls. Since my game has no levels in it I need a way to have the enemies grow with the heroes.... but I want the growth to slowly fall away as the growth continues.
This is one of many common events I've used to make the enemies stats:
The variables labelled Combined STATS are just that... The combined stats of the two main playable characters.
As it is now, the growth is steady and then just stops when it hit the max number I set. How can I make the growth more of an arc than a line?
This is one of many common events I've used to make the enemies stats:
Code:
◆Control Variables:#0122 Combined STATS hp = $gameVariables.value(63) + $gameVariables.value(71)
◆Control Variables:#0123 Combined STATS mp = $gameVariables.value(64) + $gameVariables.value(72)
◆Control Variables:#0124 Combined STATS atk = $gameVariables.value(65) + $gameVariables.value(73)
◆Control Variables:#0125 Combined STATS def = $gameVariables.value(66) + $gameVariables.value(74)
◆Control Variables:#0126 Combined STATS mat = $gameVariables.value(67) + $gameVariables.value(75)
◆Control Variables:#0127 Combined STATS mdf = $gameVariables.value(68) + $gameVariables.value(76)
◆Control Variables:#0128 Combined STATS agi = $gameVariables.value(69) + $gameVariables.value(77)
◆Control Variables:#0129 Combined STATS luk = $gameVariables.value(70) + $gameVariables.value(78)
◆Control Variables:#0183 Atk Modifier [Enemies] = Math.floor($gameVariables.value(122) / 20)
◆Control Variables:#0184 HP Modifier [Enemies] = $gameVariables.value(124) * 18
◆Control Variables:#0128 Combined STATS agi -= 5
◆Script:$gameVariables.setValue(122, Math.min(Math.floor((Math.random() * 60) + 35) + $gameVariables.value(184), 9000));
: :$gameVariables.setValue(123, Math.min($gameVariables.value(123) + Math.floor((Math.random() * 30) + 10), 6000));
: :$gameVariables.setValue(124, Math.min(6 + $gameVariables.value(183) + Math.randomInt(2), 75));
: :$gameVariables.setValue(125, Math.min($gameVariables.value(125) + Math.randomInt(1), 75));
: :$gameVariables.setValue(126, Math.min($gameVariables.value(126) + Math.randomInt(2), 75));
: :$gameVariables.setValue(127, Math.min(5 + $gameVariables.value(127) + Math.randomInt(2), 75));
: :$gameVariables.setValue(128, Math.min($gameVariables.value(128) + Math.randomInt(2), 75));
As it is now, the growth is steady and then just stops when it hit the max number I set. How can I make the growth more of an arc than a line?