Jump to content


Qyzen_Hunter

Member Since 10 May 2017
Offline Last Active Today, 06:44 AM
-----

Posts I've Made

In Topic: GenoHaradan Legacy (A Work In Progress)

Yesterday, 01:41 PM

*cough* What are the chances of the 5th attempt by someone else *cough*

 

As always, fat one, you have miscalculated. - HK-47


In Topic: Nar Shaddaa Expansion

25 May 2017 - 05:38 PM

Any progress this week?

I'm sorry, but no. I'll start from tomorrow on. I had real life stuff :P (school activities)


In Topic: Fair Strides' Script Shack

22 May 2017 - 04:41 PM

You could also tie the script to the door opening instead, if it's supposed to fire the first time you go there :D

Thanks! I'll keep that in mind.


In Topic: Fair Strides' Script Shack

22 May 2017 - 02:07 PM

 

I would need to know the context of this "certain area" to be able to help more. Primarily, you'd set up a Trigger in the area's .git file or hijack one that already exists if it's in the right spot.

 

A Trigger is a .utt file that has several events that fire scripts, one of which is an On-enter event that activates whenever something enters the area. In this case, you'd do something like this (all < > marks are ignored; you want to pay attention to what's between them):

void main()
{
    // Get the object that triggered the event
    object oTarget = GetEnteringObject();
    object oTalker = GetObjectByTag("<tag of the object/person initiating the conversation>");

    if(oTarget == GetFirstPC()) // If the triggering object is the current player-controlled character
    {
        // Have oTalker start a conversation with the PC. The code looks long because we need the last three pieces to make the
        // game ignore the distance between oTalker and oTarget. Otherwise, the player would move to oTalker first...
        AssignCommand(oTalker, ActionStartConversation(oTarget, "<name of .dlg file, minus the extension>", FALSE, CONVERSATION_TYPE_CINEMATIC, FALSE));
    }
}

Near both of the entrances of the Nar Shaddaa Landing Pad restored cantina. And if triggers once, that's it.


In Topic: Fair Strides' Script Shack

22 May 2017 - 06:12 AM

I'm not good at scripting... But how do I trigger a conversation when the PC approaches a certain area?