Page 1 of 1

[Scripting] Killing an enemy before encounter starts.

PostPosted: Sat Apr 15, 2017 11:21 am
by Zeke
I have a conversation in which the player can kill one of the enemies. Can I start the encounter at the end of the conversation with one of them dead? Or I must create a separate encounter?

Re: [Scripting] Killing an enemy before encounter starts.

PostPosted: Sat Apr 15, 2017 6:30 pm
by youngneil1
I think we best do a new script for that, like gaKillCretaure, which takes as input the encounter tag and the creature tag.

Re: [Scripting] Killing an enemy before encounter starts.

PostPosted: Sun Apr 16, 2017 9:22 pm
by Zeke
Yes, I searched a couple of times for such script. It was strange because there is KillAll script but not KillCreature. And I can't seem to find a script to do damage to a creature in combat. Is there something like that?

Oh, I saw that there is add a creature to the current encounter. But here is no remove.

Re: [Scripting] Killing an enemy before encounter starts.

PostPosted: Mon Apr 17, 2017 1:02 pm
by youngneil1
All migthy fine ideas and I think we should have a suite of scripts for setting up creature number and condition prior to the start of an encounter. I will prepare such as well as following up with adding a new type of ally that will not become a party member and will only exist for one battle (player controlled, not limited how many of such allies will be added, no portratits, no access to inventory or detailed stats).