PisOgPapir Posted March 16, 2006 Share Posted March 16, 2006 I've read tk102'se excellent tutorial titled just the same. I'm quite new to scripting, but i'm trying to accomplish the sequence with a party member, Kreia, rendering much of the tut. useless from what i can see. I got the dialogue. One that triggers the fight if it's on the ebon hawk, and one thats supposedly going to trigger if Kreia's at 1hp after the fight sequence. The problem is. I don't know how to trigger a dialog after. EDIT: Also, how would i go about setting the minhp for the player to 1? Link to comment Share on other sites More sharing options...
Patriarch Posted March 16, 2006 Share Posted March 16, 2006 Hejsa min dreng hent JDNoas decompiled scripts og kig lidt på nogle af de sekvenser der involverer talk fight talk i originalnalspillet.... En måde er at bruge on damage....en anden...og bedre userdefine....det er vigtigt at du refererer til user define i dit onspawn script........eksempelvis visascut.utc's on damage script.... du kunne bruge: #include "k_inc_generic" #include "k_inc_debug" void main(){ float float1 = IntToFloat(GetCurrentHitPoints(OBJECT_SELF)); float float3 = IntToFloat(GetMaxHitPoints(OBJECT_SELF)); float float5 = (float1 / float3);//brøk der definerer hvornår kampen skal stoppe if (float5 <= 0.5){ AurPostString("k_visas_damage: Visas below 50% life, start conversation", 10, 10, 5.0); object oVisasCut = GetObjectByTag("visascut", 0); NoClicksFor(2.0); object oPC = GetFirstPC(); CancelCombat(OBJECT_SELF); CancelCombat(oPC); AssignCommand(OBJECT_SELF, SurrenderToEnemies()); AssignCommand(OBJECT_SELF, ClearAllActions()); AssignCommand(OBJECT_SELF, ClearAllEffects()); AssignCommand(oPC, ClearAllActions()); AssignCommand(oPC, ClearAllEffects()); ChangeToStandardFaction(oVisasCut, 2); AssignCommand(oVisasCut, SurrenderToEnemies()); AssignCommand(oVisasCut, ClearAllEffects()); AssignCommand(oVisasCut, ClearAllActions()); SetMinOneHP (oPC,0); SetMinOneHP (oVisascut,0); DelayCommand(0.5, AssignCommand ((GetObjectByTag("Persontilatstartesamtalen")), ActionDoCommand(ActionStartConversation(oPC,"navnpaadialogfilen"))); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.