Jump to content

Home

Dialogue, Scripts and Global bools


Quanon

Recommended Posts

Okay I got a Dialogue in 3 big parts.

 

Part 1: Includes the "Hello, who are you ?" and the text about whats the problem , plus telling the PC he/she needs to solve it.

 

Part 2: Is just a simple line , asking why the player still hasn't solved the problem.

 

Part 3: Only gets active when the "problem" is fixed.

 

 

So Part 1 should only fire once.

 

Part 2 can get said multiple times, untill obviously the problem gets fixed.

 

Part 3 only is avaible after the fix.

 

 

So how would I approach this ... Do I need 2 or 3 Global Bools to get this to work?

 

And these Globals can be changed in whatever script they get called, right ?

 

Let go into detail :

 

- First Global gets set (and created?) when the NPC gets spawned by script, which get fired by a trigger.

 

- The PC, talks with the NPC, in the last node of the NPC a script fires to set another Global. => This blocks of the Part 1

 

- The PC goes and kills the problem , again a Global gets altered. Blocks of Part 1 and 2 , opens Part 3

 

 

Part 3 gets played and NPC leaves happily !

 

Some script lines on to handle these Global Bools would be appriciated :)

 

Plus ofcourse some commen sense talk on to tackle it all.

 

I'm always good in messing things up. :p

Link to comment
Share on other sites

Okay, brings me closer, but ... I have no idea what to do /replace the "my_quest_name" .

 

Is that the actual Global Variable or is it something else I need to edit ... that I'm not aware about.

 

Journal editing ? Confused here ... o_Q

 

*sound like a real nooby here* :xp:

 

EDIT : Found Darth333 Journal Tut. I'll be testing this out :p

Link to comment
Share on other sites

These are just my 2 creds here:

 

1. If you want to cover that a dialogue tree is only used once, you should work with k_act_talktrue and k_con_talkedto.

 

2. For the other part(s) you can either work with what Militades suggested. Then you must also create a Journal entry (which makes the whole think look very professional by the way). Or you work with GlobalNumbers.

 

As I assume you ask for your newly created area, you must decide which path you want to take generally. As I think you will not want to make a new Journal entry for every tidbit, I advice that you go with GlobalNumbers.

 

For the letter you can either create new ones (which involves manipulating .2da files if I am not mistaken) or you can use ones which are not longer necessary in the game (for example ones used on the Endar Spire or on Taris).

 

As you will add to just more then one .2da file and will have to use tsl-patcher anyway, I advice creating new ones.

 

Once again: just my 2 creds as I am in no way experienced in modding ;-) . But maybe you can find someone who wants to hop on the train and you can make a colaborate work.

 

Take care

Link to comment
Share on other sites

Thanks for the replys ! :p

 

But the problem is solved !

 

I got now Journal entries working together with this mini dialogue.

 

I've just added some more scripts aswell , which seem to be working.

 

If moderator passes by, you can lock or destroy , crush and delete this thread :lol:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...