- Joined
- Mar 13, 2012
- Messages
- 936
- Reaction score
- 578
- First Language
- Norwegian
- Primarily Uses
So, in the game I'm working on, I've got a QTE which requires the player to hold the buttons while the relevant marker is showing. (Right arrow for right, left arrow for left, etc.)
If done correctly within the allotted timeframe, this deals damage to the troop. The QTE can, as I've commanded, not cause troop death through damage, but I'm trying to find a condition that will let me check for whether or not the troop has zero or less HP left... So far, I've found checking for "emerged" or "state", which are not quite what I need...
So, looks like I must resort to setting a script as condition - but I'm lost as to exactly what the script must be - I figure it must be something something hp >= 0, but what goes in the "something something" is currently beyond me.
Note: The battle only contains one monster, a detail which is not subject to change; I'm suspecting it's something to the tune of troop_id(1).hp >= 0 or something like that, but... HALP!
EDIT: Eh, screw it; used an uglier, clunkier workaround with variables instead; when variable goes below zero, loop breaks and monster gets killed.
If done correctly within the allotted timeframe, this deals damage to the troop. The QTE can, as I've commanded, not cause troop death through damage, but I'm trying to find a condition that will let me check for whether or not the troop has zero or less HP left... So far, I've found checking for "emerged" or "state", which are not quite what I need...
So, looks like I must resort to setting a script as condition - but I'm lost as to exactly what the script must be - I figure it must be something something hp >= 0, but what goes in the "something something" is currently beyond me.
Note: The battle only contains one monster, a detail which is not subject to change; I'm suspecting it's something to the tune of troop_id(1).hp >= 0 or something like that, but... HALP!
EDIT: Eh, screw it; used an uglier, clunkier workaround with variables instead; when variable goes below zero, loop breaks and monster gets killed.
Last edited by a moderator:
