View previous topic :: View next topic |
Author |
Message |
Paco's Revenge
Joined: 24 Jan 2009 Posts: 7
|
Posted: Mon Jul 12, 2010 22:10 Post subject: Sims Tools and NWNX_Functions w/DMFI |
|
|
Okay everything seems to be working square and I was going to start removing the DMFI as I dig the Sims Tools except for one thing and that is the languages. It seems to not be working. Could this be because I have in my chat module events the dmfi script? Should I remove this and the Sims Tools work that way?
Also, maxrock for those nwx_functions to windows I so owe you some ale, mead, and a steak dinner. Awesome.
So anyone done this particular set up before? |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Tue Jul 13, 2010 21:16 Post subject: event comes first |
|
|
Simtools was made at a time before the chat event was added by bioware.
As result, Funky didnt anticipate that the Chat Event would actually preceed his chat hook.
This being the case, anything that is in the event script, will get executed before the Simtools can take over from it.
So, if your dmfi script, does set the ChatMessage to be "" (blank) then the Simtools wont be able to interact with it.
The way you can fix this, is to catch the chat message at the begining of the ChatEvent, and then determine if the player is speaking another language, (you can do this via getting local vars from the player himself.
Code: |
eg
if(GetLocalInt(oPC,"FKY_LANG") != 0)
{
//Speaking another language.
}
|
I think the variable is FKY_LANG or FKY_SPEAKING or something like that
it contains a numeric value associated with what language your player is set to speak at that moment.
If you want the languages to work, you need to 'preserve' the original chat string from the start of the Chat Event, and make sure to restore it by the end of the Chat Event script, so Simtools can handle it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot 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
|
Powered by phpBB © 2001, 2005 phpBB Group
|