logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
SetCampaignString

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
mostal



Joined: 29 Apr 2005
Posts: 60

PostPosted: Sun Jun 04, 2006 20:58    Post subject: SetCampaignString Reply with quote

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
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Mon Jun 05, 2006 1:07    Post subject: Reply with quote

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
View user's profile Send private message
mostal



Joined: 29 Apr 2005
Posts: 60

PostPosted: Mon Jun 05, 2006 8:23    Post subject: Reply with quote

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
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Mon Jun 05, 2006 14:40    Post subject: Reply with quote

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
View user's profile Send private message
mostal



Joined: 29 Apr 2005
Posts: 60

PostPosted: Mon Jun 05, 2006 20:39    Post subject: Reply with quote

bad news Wink

If anyone knows how to unlock standard scripts... Smile

Régis
Back to top
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Mon Jun 05, 2006 20:49    Post subject: Reply with quote

mostal wrote:
bad news Wink

If anyone knows how to unlock standard scripts... Smile

Régis

THey aren't scripts, they are hard-coded into the game engine itself.
Back to top
View user's profile Send private message
Rami_Ahmed



Joined: 07 Dec 2005
Posts: 37
Location: Denmark

PostPosted: Tue Jun 06, 2006 10:19    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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