I was wondering if there was some way to tell which # / Node in the conversation you were on by scripting?
e.g.
line 1)
line 2)
line 3)
Anyone?
Checking Nodes in a Conversation Through Scripting
Débuté par
_Guile
, août 24 2011 03:01
#1
Posté 24 août 2011 - 03:01
#2
Posté 24 août 2011 - 03:14
I don't believe so.
What you could do is have a set of generic scripts that simply set an integer variable on the PC/NPC that determines which conversation node they are currently on.
SetLocalInt(oPC, "CURRENT_CONV_NODE", 1);
And then either put those scripts in the ActionsTaken tabs of those lines or if you have other scripts on those lines then just use ExecuteScript to execute the "node" scripts. This is the only options that comes to mind anyway.
What you could do is have a set of generic scripts that simply set an integer variable on the PC/NPC that determines which conversation node they are currently on.
SetLocalInt(oPC, "CURRENT_CONV_NODE", 1);
And then either put those scripts in the ActionsTaken tabs of those lines or if you have other scripts on those lines then just use ExecuteScript to execute the "node" scripts. This is the only options that comes to mind anyway.
Modifié par GhostOfGod, 24 août 2011 - 03:18 .
#3
Posté 24 août 2011 - 04:09
Yes, that makes a lot of sense too Ghost...
That would eliminate a lot of redundancy in the needed scripting for checking too!
Thanks for the tip.
That would eliminate a lot of redundancy in the needed scripting for checking too!
Thanks for the tip.
#4
Posté 24 août 2011 - 04:21
Maybe a dynamic convo could give you the flexibility and control you're looking for. Nwnx_events for Linux is known to handle most(if not all) convo events, yet if you're under Windows(like me, unfortunately) you could still use a very useful(yet not perfect) system named ZDialog. Dynamic convos are a little complex at first but they are well worth it!
Kato
Kato
#5
Posté 24 août 2011 - 04:46
Kato hit both options. With nwnx_events, you can get both the relative and absolute convo node of a convo. With a dynamic convo system like z-dialogue, you can know what it is, as well, and it doesn't require a nwnx plugin.
Funky
Funky
#6
Posté 24 août 2011 - 04:47
I'll just do a custom include for checking, it will reduce the # of script some, already at 367 and counting, meh!
It may be too late to turn back now though...
I'll look over this Z-Dialogue thing, you got a link Funky?
It may be too late to turn back now though...
I'll look over this Z-Dialogue thing, you got a link Funky?
Modifié par _Guile, 24 août 2011 - 04:48 .
#7
Posté 24 août 2011 - 08:29
Well if I may, I would advise you use the one packaged with HGLL since it was somewhat updated and cleaned of some of it's initial bugs(Sorry if there is a newer version I'm not aware of, I have seen none yet).
Kato
Kato
Modifié par Kato_Yang, 24 août 2011 - 08:29 .





Retour en haut







