lfnetwork.com mark read register faq members calendar

Thread: Talk - attack - talk trouble
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 03-16-2006, 09:15 AM   #1
PisOgPapir
Rookie
 
PisOgPapir's Avatar
 
Join Date: Apr 2005
Posts: 73
Talk - attack - talk trouble

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?


The force is like duct tape. It binds us and keeps the galaxy together.
Quote:
Originally posted by Hallucination
K thx. and PisOgPapir, duct tape is also like the force cause it has a dark side and a light side.

Last edited by PisOgPapir; 03-16-2006 at 09:27 AM.
PisOgPapir is offline   you may: quote & reply,
Old 03-16-2006, 06:25 PM   #2
Patriarch
Rookie
 
Join Date: Oct 2005
Posts: 77
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:

Code:
#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")));



	
}
}

Last edited by Patriarch; 03-16-2006 at 06:35 PM.
Patriarch is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Talk - attack - talk trouble

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:30 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.