What is the name of the dialog file where the exile drains the masters and kreia explains what it is? And what is the name of the dialog for when kreia is teaching the exile vrook's force form? Also I need to fire a script that will intiate dialog with vrook when he reaches a set amount of hp during the duel on dantoine, adding it to the dialog where you learn from him would probably be ideal. (I have the script, just need the dlg.) Also how do I script fades?
It's called lrn_form, under the dialogs.bif section.
Thanks, now someone answer the other questions.
now someone answer the other questions.
Ever thought to try the Scripting Tutorials (
http://www.lucasforums.com/forumdisplay.php?f=597) area? Your answers are very likely there.
I have...
EDIT: I need to add a script in here, but I can't find the on damaged event which is where I would add a script to call that when he's got 1hp my new dlg fires.
// Globals
int intGLOB_1 = 1;
int intGLOB_2 = 2;
int intGLOB_3 = 3;
int intGLOB_4 = 4;
int intGLOB_5 = 5;
int intGLOB_6 = 6;
int intGLOB_7 = 3;
int intGLOB_8 = 4;
int intGLOB_9 = 5;
int intGLOB_10 = 6;
int intGLOB_11 = 7;
int intGLOB_12 = 8;
int intGLOB_13 = 9;
int intGLOB_14 = 10;
int intGLOB_15 = 11;
int intGLOB_16 = 1;
int intGLOB_17 = 2;
int intGLOB_18 = 3;
int intGLOB_19 = 4;
int intGLOB_20 = 5;
int intGLOB_21 = 6;
int intGLOB_22 = 7;
int intGLOB_23 = 8;
int intGLOB_24 = 9;
int intGLOB_25 = 10;
int intGLOB_26 = 11;
int intGLOB_27 = 12;
int intGLOB_28 = 13;
int intGLOB_29 = 14;
int intGLOB_30 = 15;
int intGLOB_31 = 16;
int intGLOB_32 = 17;
int intGLOB_33 = 18;
int intGLOB_34 = 19;
int intGLOB_35 = 20;
int intGLOB_36 = 21;
int intGLOB_37 = 22;
int intGLOB_38 = 23;
int intGLOB_39 = 24;
int intGLOB_40 = 25;
int intGLOB_41 = 26;
int intGLOB_42 = 27;
int intGLOB_43 = 28;
int intGLOB_44 = 29;
int intGLOB_45 = 30;
int intGLOB_46 = 31;
int intGLOB_47 = 32;
int intGLOB_48 = 84;
int intGLOB_49 = 0;
int intGLOB_50 = 1;
int intGLOB_51 = 2;
int intGLOB_52 = 29;
int intGLOB_53 = 65;
int intGLOB_54 = 98;
int intGLOB_55 = 99;
int intGLOB_56 = 100;
int intGLOB_57 = 101;
int intGLOB_58 = 103;
int intGLOB_59 = 104;
int intGLOB_60 = 105;
int intGLOB_61 = 106;
int intGLOB_62 = 102;
int intGLOB_63 = 107;
int intGLOB_64 = 108;
int intGLOB_65 = 102;
int intGLOB_66 = 107;
int intGLOB_67 = 108;
int intGLOB_68 = 109;
int intGLOB_69 = 15;
int intGLOB_70 = 10;
int intGLOB_71 = 5;
int intGLOB_72 = 2;
int intGLOB_73;
int intGLOB_74;
int intGLOB_75;
object objectGLOB_1;
int intGLOB_76;
int intGLOB_77;
int intGLOB_78;
int intGLOB_79;
int intGLOB_80;
int intGLOB_81;
int intGLOB_82 = 1;
int intGLOB_83 = 2;
int intGLOB_84 = 3;
int intGLOB_85 = 20;
int intGLOB_86 = 21;
int intGLOB_87 = 22;
int intGLOB_88 = 23;
int intGLOB_89 = 24;
int intGLOB_90 = 25;
int intGLOB_91 = 26;
int intGLOB_92 = 27;
int intGLOB_93 = 28;
int intGLOB_94 = 66;
int intGLOB_95 = 67;
int intGLOB_96 = 68;
int intGLOB_97 = 69;
int intGLOB_98 = 70;
int intGLOB_99 = 71;
int intGLOB_100 = 72;
int intGLOB_101 = 73;
int intGLOB_102 = 74;
int intGLOB_103 = 75;
int intGLOB_104 = 76;
int intGLOB_105 = 77;
int intGLOB_106 = 78;
int intGLOB_107 = 79;
int intGLOB_108 = 80;
int intGLOB_109 = 81;
int intGLOB_110 = 82;
int intGLOB_111 = 83;
int intGLOB_112 = 85;
int intGLOB_113 = 86;
int intGLOB_114 = 87;
int intGLOB_115 = 88;
int intGLOB_116 = 89;
int intGLOB_117 = 90;
int intGLOB_118 = 91;
int intGLOB_119 = 92;
int intGLOB_120 = 94;
int intGLOB_121 = 95;
int intGLOB_122 = 96;
int intGLOB_123 = 97;
int intGLOB_124 = 1;
int intGLOB_125 = 2;
int intGLOB_126 = 3;
int intGLOB_127 = 4;
int intGLOB_128 = 5;
int intGLOB_129 = 0;
int intGLOB_130 = 1;
int intGLOB_131 = 2;
int intGLOB_132 = 3;
int intGLOB_133 = 4;
int intGLOB_134 = 5;
int intGLOB_135 = 6;
int intGLOB_136 = 7;
int intGLOB_137 = 8;
int intGLOB_138 = 9;
int intGLOB_139 = 10;
int intGLOB_140 = 11;
int intGLOB_141 = 12;
int intGLOB_142 = 13;
int intGLOB_143 = 14;
int intGLOB_144 = 15;
int intGLOB_145 = 16;
int intGLOB_146 = 17;
int intGLOB_147 = 18;
int intGLOB_148 = 19;
int intGLOB_149 = 1100;
int intGLOB_150 = (-6);
int intGLOB_151 = (-5);
int intGLOB_152 = (-4);
int intGLOB_153 = (-2);
int intGLOB_154 = (-1);
int intGLOB_155 = 0;
// Prototypes
void sub2(string stringParam1);
void sub1(int intParam1, int intParam2);
void sub2(string stringParam1) {
object object1 = OBJECT_SELF;
if (GetCommandable(object1)) {
ClearAllActions();
CancelCombat(object1);
ActionMoveToObject(GetNearestObjectByTag("wp_homebase", OBJECT_SELF, 1), 1, 3.0);
ActionDoCommand(SetCommandable(1, object1));
SetCommandable(0, OBJECT_SELF);
}
}
void sub1(int intParam1, int intParam2) {
SetLocalBoolean(OBJECT_SELF, intParam1, intParam2);
}
void main() {
int int1 = GetUserDefinedEventNumber();
if ((int1 == 1001)) {
}
else {
if ((int1 == 1002)) {
}
else {
if ((int1 == 1003)) {
}
else {
if ((int1 == 1004)) {
}
else {
if ((int1 == 1005)) {
}
else {
if ((int1 == 1006)) {
int nGlobal = GetGlobalNumber("604DAN_Vrook_Status");
int int5 = GetGlobalNumber("601DAN_Side");
if (((int5 == 1) && (nGlobal == 3))) {
return;
}
if (((GetCurrentHitPoints(OBJECT_SELF) < (GetMaxHitPoints(OBJECT_SELF) / 2)) && (!GetLocalBoolean(OBJECT_SELF, 40)))) {
SetLocalBoolean(OBJECT_SELF, 40, 1);
object oInvisoKreia = GetObjectByTag("InvisoKreia", 0);
if ((!GetIsObjectValid(oInvisoKreia))) {
AurPostString("Could not find InvisoKreia.", 10, 10, 2.0);
}
else {
SetLocalNumber(oInvisoKreia, 12, 2);
sub1(intGLOB_114, 1);
CancelCombat(OBJECT_SELF);
CancelCombat(GetFirstPC());
ClearAllEffects();
ClearAllActions();
SetGlobalFadeOut(0.0, 1.0, 0.0, 0.0, 0.0);
NoClicksFor(1.2);
AssignCommand(oInvisoKreia, ActionStartConversation(GetFirstPC(), "lrn_form", 0, 0, 1, "", "", "", "", "", "", 0, 0xFFFFFFFF, 0xFFFFFFFF, 0));
}
}
else {
if (((GetCurrentHitPoints(OBJECT_SELF) == 1) && GetLocalBoolean(OBJECT_SELF, 40))) {
object object5 = GetObjectByTag("InvisoKreia", 0);
if ((!GetIsObjectValid(object5))) {
AurPostString("Could not find InvisoKreia.", 10, 10, 2.0);
}
else {
SetLocalNumber(object5, 15, 1);
SetLocalNumber(object5, 12, 2);
sub1(intGLOB_114, 1);
CancelCombat(OBJECT_SELF);
CancelCombat(GetFirstPC());
ClearAllEffects();
ClearAllActions();
ChangeToStandardFaction(OBJECT_SELF, 4);
SetGlobalFadeIn(0.0, 1.0, 0.0, 0.0, 0.0);
NoClicksFor(1.2);
AssignCommand(object5, ActionStartConversation(GetFirstPC(), "lrn_form", 0, 0, 1, "", "", "", "", "", "", 0, 0xFFFFFFFF, 0xFFFFFFFF, 0));
}
}
}
}
else {
if ((int1 == 1007)) {
}
else {
if ((int1 == 1008)) {
}
else {
if ((int1 == 1009)) {
}
else {
if ((int1 == 1010)) {
}
else {
if ((int1 == 1011)) {
}
else {
if ((int1 == intGLOB_149)) {
sub2("wp_homebase");
}
}
}
}
}
}
}
}
}
}
}
}
}
The following is the script I should be adding to the on damaged event in vrooks userdefine.
void main() {
object oPC = GetFirstPC();
object oVrook = GetObjectByTag("npc_vrook");
SetMinOneHP(oVrook, 1);
if ((GetMinOneHP(oVrook) == TRUE)) {
SetMinOneHP(oVrook, 0);
AssignCommand(oVrook, ActionStartConversation(oPC, "Vrook Capture", FALSE, 0, TRUE));
}
}