Hey guys, ive been gone for a while, doing some favorite program hopping. I must admit that it was the screenshots that brought me back to working on my game. Good job guys :)! Well, anway, in my game, which just so happens to be The Fellowship of the Ring, there naturally will have to be big battles. I've thought about various ways to do it and I know that it has been discussed earlier. I played around with it a little, and at first i used stamps (having a soldier stamp constantly attacking a goblin stamp). That looks okay, but i think it would leave the user somewhat confused on which enemies they can attack or not. Then, one morning, I got an idea on how to do a battle with killable NPCs. Here is what I have so far:
1: Create a Passive NPC with it's stand animation being an orc attacking in the correct position.
2: Create a Gimli NPC " " "
3 :Do this: Place them next to each other, so that they constantly attack each other. On Gimli's animation, every time he strikes, have a global (i.e. gb_orchealth) add 1.
4: When the global reaches say, 10, kill the orc NPC. On the death event of the orc NPC, do the following:
A: Delete Gimli NPC, and replace with a new one that has a target location of your choice.
B: When reaching location, create a new orc at an entrance or something, In the case of Balin's Tomb, that has a target of Gimli's current position (will probably require some more globals).
When the orc gets to Gimli, replace both gimli and the orc with the same Gimli and orc used above (the attacking ones).
Reset gb_orchealth to 0.
5: Repeat steps, depending on how complex you want it to be, you could have 2-10 or so different Gimlis that go to different locations to fight, and eventually it will loop.
That is my idea. Also, since the orc NPC is passive, you also have the choice of helping out your buddy Gimli and killing the orc. Now, this would be a little too complex for a huge battle, but if you wanted to do something like, say, Amon Hen, where you have a group of characters fighting, it should work.
Let me know what you think.
------------------
I'm not laughing at you,
I'm laughing with you in
mind