Hi, I have an interesting idea for my game. My game take place in a little town that was invaded by monsters and I want I the more realistic possible, so it's complicated to make a battle system interesting with weakness etc..
But I was thinking about making background elements interactive in battle. For exemple if I'm in an abandoned store and a battle start, I will be in front of the monster but there will also be a part of the roof. The idea is that it will be possible to attack the roof part, when it HP comes to 0, the roof dies and the battle text tells that the part felt on the monster, which is now stun and have taken little damages.
I have a basic idea to what I need (my "objects" needs to be ennemies). But I don't know how to do the script to make damages to it's allies when it dies by script. And the more important, They're ennemies in troops that's don't need to be defeated to end the battle. I need the battle to stop when all monsters are dead, even if a part of the roof is still alive.
I'm so thankful to this forum, you saved my game a few time with problems I can't deal with. I think It's the last of them.
But I was thinking about making background elements interactive in battle. For exemple if I'm in an abandoned store and a battle start, I will be in front of the monster but there will also be a part of the roof. The idea is that it will be possible to attack the roof part, when it HP comes to 0, the roof dies and the battle text tells that the part felt on the monster, which is now stun and have taken little damages.
I have a basic idea to what I need (my "objects" needs to be ennemies). But I don't know how to do the script to make damages to it's allies when it dies by script. And the more important, They're ennemies in troops that's don't need to be defeated to end the battle. I need the battle to stop when all monsters are dead, even if a part of the roof is still alive.
I'm so thankful to this forum, you saved my game a few time with problems I can't deal with. I think It's the last of them.