Jump to content

Home

Another scripting question from Seamhainn


Seamhainn

Recommended Posts

Hello!

 

Is it possibile that, if the pc has a certain item in his/her inventory, a dialogue one-liner appearce from time to time - then seemingly out of nowhere?

 

As you might expect this is in regards of the holocron I am working on and which the pc can acquire in the lost Shadowlands, and my idea is, after the pc gets the cursed thing three or four Sith Lords give some more or less good (or in this case bad) advice(s). These advice should not come in a row but after a good while and apart from each other.

 

Also, as we don't have VOs for it: is it then possible to make a static, screeching or somesuch sound which is in-game instead, when those lines are spoken?

 

Thanks and take care

Link to comment
Share on other sites

well ... the dialogue needs to be triggered ... it can be done by placed triggers or a script ... if it is fired by a script then the script needs somekind of trigger ... which can be a placed trigger or a dialogue or OnDeath and such events .... I think that you may trigger the dialogues only by triggers in some areas you might want the dialogues start ... or they might be fired with pre-determined intervals .. like using a timer in script ... i kinda havent found a random-call-script option in KotOR .. thats my opinion .. and yeah .. I'm tired ... so all this text might be a bit .. whats the word .. unintelligable ? ...

 

EDIT: I might have forgotten/skipped/missed something ....

Link to comment
Share on other sites

Is it possibile that, if the pc has a certain item in his/her inventory, a dialogue one-liner appearce from time to time - then seemingly out of nowhere?

 

It this supposed to happen completely at random, or at certain points during a plot, or at certain locations in the game world?

Link to comment
Share on other sites

Well you can set a delay between events.

 

fDelayInSeconds=2.0;

DelayCommand(fDelayInSeconds,some_action);

 

What about the code for party members talking to each other, that seems random. Couldn't you have a look at the .dlg files and decompile the scripts that cause the NPCs to randomly talk to each other? I would, but I'm a little pre-occupied at the moment.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...