randydg Posted August 12, 2008 Share Posted August 12, 2008 Script needed: Attack then dialog when attacker is at 10hp or so I've searched everywhere and I know there was one in scripts but I cant find it anywhere. This would be on the creatures what? on user defined ? [Edit: I think i found it- I will try it and see if it works] void main() { int nCurHP = GetCurrentHitPoints(OBJECT_SELF); int nMaxHP = GetMaxHitPoints(OBJECT_SELF); int int7 = (nCurHP / nMaxHP); if ((nCurHP < 50)) { SetCommandable(1, OBJECT_SELF); ClearAllEffects(); ClearAllActions(); SurrenderToEnemies(); CancelCombat(OBJECT_SELF); AssignCommand(GetFirstPC(), ClearAllActions()); DelayCommand(0.2, ActionStartConversation(GetFirstPC(), "fightwon", 0, 0, 0, "", "", "", "", "", "", 0, 0xFFFFFFFF, 0xFFFFFFFF, 0)); }} Link to comment Share on other sites More sharing options...
TriggerGod Posted August 12, 2008 Share Posted August 12, 2008 I'm not sure on how to do one of those scripts, but you can use a Talk - Fight - Talk sequence which can be done as long as you follow This tutorial. ^_^ Link to comment Share on other sites More sharing options...
randydg Posted August 12, 2008 Author Share Posted August 12, 2008 thanks triggergod, but I had a flash bulb go off and the script above worked for me thanks anyways, Randy Edit: Nevermind the script link you gave me worked so i just dumped my script and got that one. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.