View previous topic :: View next topic |
Author |
Message |
mostal
Joined: 29 Apr 2005 Posts: 60
|
Posted: Sun Jun 04, 2006 20:58 Post subject: SetCampaignString |
|
|
Hello,
I'm looking for informations about SetCampaignString Bioware script.
My idea was to create custom functions to replace SetCampaignString for use complex DBF files (not only Bioware DB with few static fields)
Do you know how I could do ?
Thanks a lot
Régis |
|
Back to top |
|
|
Acrodania
Joined: 02 Jan 2005 Posts: 208
|
Posted: Mon Jun 05, 2006 1:07 Post subject: |
|
|
The NWNX equivelant is SetPersistentString.
It is functionally the same except uses your external database.
If you want to use custom tables (other than the default NWNX table) then you can issue direct SQL commands and use whatever table configuration you wish, including returning multiple string fields with one query.... |
|
Back to top |
|
|
mostal
Joined: 29 Apr 2005 Posts: 60
|
Posted: Mon Jun 05, 2006 8:23 Post subject: |
|
|
Thanks for your response.
I've seen that in aps_include file.
I have a craft project and you would propose 2 solutions: bioware DB et NWNX/MySQL support.
I don't have any problem with NWNX, I already use it for 2 years and I'm sure it is the best one.
For Bioware DB support, I would create new functions, like SetCampaignString, but without NWNX. That's my question...is it possible ? How ? Is native SetCampaignString script compiled in NWN game ? Is it possible to extend it ?
Thanks a lot
Régis |
|
Back to top |
|
|
Acrodania
Joined: 02 Jan 2005 Posts: 208
|
Posted: Mon Jun 05, 2006 14:40 Post subject: |
|
|
The native format is locked; you can't alter it.
The other option you might have is to use a Hak and a 2da entry instead of the default DB, but you can't write to it only read... |
|
Back to top |
|
|
mostal
Joined: 29 Apr 2005 Posts: 60
|
Posted: Mon Jun 05, 2006 20:39 Post subject: |
|
|
bad news
If anyone knows how to unlock standard scripts...
Régis |
|
Back to top |
|
|
Acrodania
Joined: 02 Jan 2005 Posts: 208
|
Posted: Mon Jun 05, 2006 20:49 Post subject: |
|
|
mostal wrote: | bad news
If anyone knows how to unlock standard scripts...
Régis |
THey aren't scripts, they are hard-coded into the game engine itself. |
|
Back to top |
|
|
Rami_Ahmed
Joined: 07 Dec 2005 Posts: 37 Location: Denmark
|
Posted: Tue Jun 06, 2006 10:19 Post subject: |
|
|
But you can change that too... from the nwscript script, it's a rather large project though and really not advised.
You can head over to the BioWare forums, George Z. posted some time ago how to change scripting functions, haven't tried myself though.
Good luck. |
|
Back to top |
|
|
|