FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

[SCRIPTING] need help with 'Text Appears When' script

 
   Games (Home) -> Neverwinter Nights RSS
Related Topics:
Worst Class Combo - OK, we've seen the threads on best classes. But, what do you think would be the worst class combo to take all the way through the OC and HotU? My vote is for Bard, Pale Master, Red Dragon Disciple.

DYK8S Tons Of Fun DYK8S - This site has one of the best game rooms online for fun! Visit the arcade room for at has plenty of free games to enjoy! So pass it on...

&2DFZ Tons Of Fun &2DFZ - This site has tons of games for fun! Visit the arcade room for at ! Also has plenty of free games to enjoy! So pass it on... ]TreN

Suggestion to solve lagging in NWN2 -

MI5-Persecution: MI5 are Afraid to Admit Theyre Behind the.. - MI5 are Afraid to Admit They're Behind the MI5 have issued a formal denial of any in my life to the Security Service Tribunal, as you might expect them to; but, more the have never denied that theyre from..
Next:  Neverwinter Nights: anyone know of a forum for scipting/builders out there tha..  
Author Message
Revan

External


Since: Jun 22, 2008
Posts: 5



(Msg. 1) Posted: Sun Jun 22, 2008 4:56 pm
Post subject: [SCRIPTING] need help with 'Text Appears When' script
Archived from groups: alt>games>neverwinter-nights (more info?)

okay, i have it setup when you first talk to this npc, he gives you
a quest, but now i need a startingconditional so that when you speak
to him again he doesnt repeat the same thing

the script i tried using was;

int StartingConditional()
{

// Inspect local variables
if(!(GetLocalInt(GetPCSpeaker(), "candle1") == 1))
return FALSE;

return TRUE;
}


I basically want it set so that once you have the journal entry of
that quest, he starts a different conversation tree.


--
--------------------------------- --- -- -
Posted with NewsLeecher v3.8 Beta 5
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
Back to top
Login to vote
JB

External


Since: Feb 21, 2008
Posts: 11



(Msg. 2) Posted: Sun Jun 22, 2008 4:56 pm
Post subject: Re: [SCRIPTING] need help with 'Text Appears When' script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

revan.TakeThisOut@oldrepublic.uni wrote:
> okay, i have it setup when you first talk to this npc, he gives you
> a quest, but now i need a startingconditional so that when you speak
> to him again he doesnt repeat the same thing
>
> the script i tried using was;
>
> int StartingConditional()
> {
>
> // Inspect local variables
> if(!(GetLocalInt(GetPCSpeaker(), "candle1") == 1))
> return FALSE;
>
> return TRUE;
> }
>
> I basically want it set so that once you have the journal entry of
> that quest, he starts a different conversation tree.

I take it that you are setting candle1 to 1 when the NPC assigns the
quest. In this case, you should be reversing the FALSE & TRUE. The
conversation should then fall through to the next branch when the
variable has been set.
Back to top
Login to vote
Revan

External


Since: Jun 22, 2008
Posts: 5



(Msg. 3) Posted: Mon Jun 23, 2008 2:13 am
Post subject: Re: [SCRIPTING] need help with 'Text Appears When' script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

that didnt appear to work, it just restarts the original
comversation tree.


--
--------------------------------- --- -- -
Posted with NewsLeecher v3.8 Beta 5
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
Back to top
Login to vote
JB

External


Since: Feb 21, 2008
Posts: 11



(Msg. 4) Posted: Mon Jun 23, 2008 2:13 am
Post subject: Re: [SCRIPTING] need help with 'Text Appears When' script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

revan RemoveThis @oldrepublic.uni wrote:
> that didnt appear to work, it just restarts the original
> comversation tree.

Show the code where you set candle1 and a graph of the first few nodes
of convo.
Back to top
Login to vote
Hans Wein

External


Since: Jan 18, 2005
Posts: 186



(Msg. 5) Posted: Mon Jun 23, 2008 1:34 pm
Post subject: Re: [SCRIPTING] need help with 'Text Appears When' script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Revan wrote:

> that didnt appear to work, it just restarts the original
> comversation tree.

Maybe you didn't place the conversation parts in the right order; the
original thread has to be placed after the conditioned one.
Back to top
Login to vote
Revan

External


Since: Jun 22, 2008
Posts: 5



(Msg. 6) Posted: Mon Jun 23, 2008 8:44 pm
Post subject: Re: [SCRIPTING] need help with 'Text Appears When' script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

okay, instead of a graph, i uploaded an image of the conversation in
the toolset.

heres the script that sets candle1

void main()
{

object oPC = GetPCSpeaker();

AddJournalQuestEntry("candle1", 1, oPC, FALSE, FALSE);

}

setting isnt the problem though, once its set, I want the npc to
have a new line of dialog.


--
--------------------------------- --- -- -
Posted with NewsLeecher v3.8 Beta 5
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
Back to top
Login to vote
Hans Wein

External


Since: Jan 18, 2005
Posts: 186



(Msg. 7) Posted: Tue Jun 24, 2008 7:46 pm
Post subject: Re: [SCRIPTING] need help with 'Text Appears When' script [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Revan wrote:
> okay, instead of a graph, i uploaded an image of the conversation in
> the toolset.

That will not help at all, because binary attachments are blocked by
many providers (or even your whole posting is banned).

> heres the script that sets candle1
>
> void main()
> {
>
> object oPC = GetPCSpeaker();
>
> AddJournalQuestEntry("candle1", 1, oPC, FALSE, FALSE);
>
> }
>
> setting isnt the problem though, once its set, I want the npc to
> have a new line of dialog.

Well, I think this is the wrong way - the above function is used to let
the player read a new topic in the journal, but an opposite function to
check a certain journal state doesn't exist, AFAIK. To control a
conversation, you should use a local variable.

I strongly recommend to load down and study a source like NWNLexicon:

http://www.nwnlexicon.com/
Back to top
Login to vote
Display posts from previous:   
       Games (Home) -> Neverwinter Nights All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
  Game Forums
 Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact