Mephiles550

Members
  • Content Count

    397
  • Joined

  • Last visited

  • Days Won

    17

Mephiles550 last won the day on April 18 2023

Mephiles550 had the most liked content!

Community Reputation

215 Jedi Grand Master

3 Followers

About Mephiles550

  • Rank
    Jedi Knight

Profile Information

  • Gender
    Male

Recent Profile Visitors

53,223 profile views

Single Status Update

See all updates by Mephiles550

  1. Is there a UTC file for trask? Like P_Trask.utc? Cause I can't find something like it anywhere. Is his equipment strictly script based?

    1. Show previous comments  1 more
    2. Mephiles550

      Mephiles550

      For some reason, editing the end_trask.utc file does not alter what equipment he starts off with. I replaced his blaster pistol with a rifle and he still only starts off with a pistol. That's very strange.

    3. Mephiles550

      Mephiles550

      Oh drat, nevermind, the utc didn't save for some reason. Yep, it's all working now.

      I'm curious though, do you know the script connected to equipping Trask with the short sword as he fights Bandon? I want to see what I can do with that.

    4. DarthParametric

      DarthParametric

      If you look at the DLG for that cutscene, end_cut01.dlg, you'll see all the scripts that fire:

      Trasks_Noble_Sacrifice.jpg.80c56d796a4670cd3cc6e24da8f5ae4e.jpg

      Browsing through those, it's a combination of two scripts that control equipping the sword. The actual creation and equipping of the sword is handled by his OnUserDefine, k_pend_trask_d, in Case 500:

      		case 500:
      			RemovePartyMember(0);
      			RemoveAvailableNPC(0);
      			{
      				object object6 = CreateItemOnObject("g_w_shortswrd01", OBJECT_SELF, 1);
      				ClearAllActions();
      				ActionUnequipItem(GetItemInSlot(4, OBJECT_SELF), 0);
      				ActionEquipItem(object6, 4, 1);
      				ActionForceMoveToObject(GetObjectByTag("end_wp_traskdie2", 0), 1, 1.0, 3.0);
      			}
      			break;

      That case is called in Entry1 by k_pend_cut14:

      void main() {
      	object oEnd_door19 = GetObjectByTag("end_door19", 0);
      	SetLocked(oEnd_door19, 1);
      	AssignCommand(oEnd_door19, ActionCloseDoor(oEnd_door19));
      	AssignCommand(GetFirstPC(), sub1());
      	SignalEvent(sub2(), EventUserDefined(500));
      }

      If you want to change the weapon he uses, you'll need to edit k_pend_trask_d, but if you want to change when he actually equips it, you'll need to edit the scripts that fire during the DLG.

    5. Show next comments  3 more