I would like to add a hard mode to my game, all it has to do is make you fight the same enemies, but with higher stats.
I know I could just make a copy of every enemy in my game with better stats, and make change enemy formation sets when the hard mode tag is on, but I feel like their must be a better way to do this, as it would be very unorganized in my editor and a bit time consuming.
What would be the best way to implement a hard mode?
Moderators: marionline, SDHawk
- Seamus Moore
- Slime
- Posts: 19
- Joined: Mon Mar 16, 2020 9:39 pm
- Location: Seamus Moore's House
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
- The Wobbler
- A Scrambled Egg
- Posts: 2817
- Joined: Mon Oct 15, 2007 8:36 pm
- Location: Underwater
- Contact:
I used a difficulty selector that sets a global variable and a tag which determines which formation players fight when they encounter an enemy.
#EASY
if(DifficultyLevel==0)
then(fight formation (50)
FullPartyHeal)
#STANDARD
if(DifficultyLevel==1)
then(fight formation (51))
#HARD
if(DifficultyLevel==2)
then(fight formation (52))
If you wanted to cover a range of possible encounters you could do something like
if(DifficultyLevel==2)
then(fight formation (random(52,60)))
Easy mode has the added bonus of a script that restores hero HP after battle. I do duplicate a couple enemies and change their stats, but for the most part it's just different formations and different chained skills for example:
When an enemy uses the Bite attack, it chains to a poison attack normally. If the Easy Mode tag is on, it chains to a different version of the attack which does 20% less damage and doesn't poison. This allows me to use just one enemy but give them a variety of attacks available on different difficulties. I do a lot of things like giving enemies buffing/debuffing attacks on Normal and Hard but having Instead Chains replace them with straight damage attacks on Easy for players that don't want to deal with a more complex fight.
I also do things like adding invisible enemies that can't be targeted and die when alone as a way of giving players additional resources/XP in the Easy Mode formations.
#EASY
if(DifficultyLevel==0)
then(fight formation (50)
FullPartyHeal)
#STANDARD
if(DifficultyLevel==1)
then(fight formation (51))
#HARD
if(DifficultyLevel==2)
then(fight formation (52))
If you wanted to cover a range of possible encounters you could do something like
if(DifficultyLevel==2)
then(fight formation (random(52,60)))
Easy mode has the added bonus of a script that restores hero HP after battle. I do duplicate a couple enemies and change their stats, but for the most part it's just different formations and different chained skills for example:
When an enemy uses the Bite attack, it chains to a poison attack normally. If the Easy Mode tag is on, it chains to a different version of the attack which does 20% less damage and doesn't poison. This allows me to use just one enemy but give them a variety of attacks available on different difficulties. I do a lot of things like giving enemies buffing/debuffing attacks on Normal and Hard but having Instead Chains replace them with straight damage attacks on Easy for players that don't want to deal with a more complex fight.
I also do things like adding invisible enemies that can't be targeted and die when alone as a way of giving players additional resources/XP in the Easy Mode formations.
Last edited by The Wobbler on Sun Mar 29, 2020 3:19 pm, edited 1 time in total.