I'd suggest using the script editor in sfall modders pack.
else if ((Sulik_In_Party) or (party_is_waiting)) then begin
if ((obj_pid(critter_inven_obj(self_obj,0))== 232) or (obj_pid(critter_inven_obj(self_obj,0))== 3 )) then begin
start_gdialog(NAME,self_obj,4,HEAD_SULIK,PartyMemberBackground);
gSay_Start;
call Node1000;
//call Node065;
gSay_End;
end_dialogue;
end
else
if (obj_pid(critter_inven_obj(self_obj,0))== 0) then begin
start_gdialog(NAME,self_obj,4,HEAD_SULIK,PartyMemberBackground);
gSay_Start;
call Node1000;
//call Node065;
gSay_End;
end_dialogue;
end
end
It looks like you are trying to call obj_pid on a null pointer, which I suspect is crashing the script.Ok who can tell me what elementary mistake i'm making here. As you can probably guess i'm trying to make Sulik use a different TH when wearing different armor:
Code:else if ((Sulik_In_Party) or (party_is_waiting)) then begin if ((obj_pid(critter_inven_obj(self_obj,0))== 232) or (obj_pid(critter_inven_obj(self_obj,0))== 3 )) then begin start_gdialog(NAME,self_obj,4,HEAD_SULIK,PartyMemberBackground); gSay_Start; call Node1000; //call Node065; gSay_End; end_dialogue; end else if (obj_pid(critter_inven_obj(self_obj,0))== 0) then begin start_gdialog(NAME,self_obj,4,HEAD_SULIK,PartyMemberBackground); gSay_Start; call Node1000; //call Node065; gSay_End; end_dialogue; end end
It works fine when he is wearing PA (232, 3) but when i have him take it off and go to no armor (0) I can't talk to him at all.
Thanks guys.