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 
 
Local vars in character files?

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



Joined: 08 Jan 2005
Posts: 100

PostPosted: Sat Jan 15, 2005 4:04    Post subject: Local vars in character files? Reply with quote

I'm wanting to attempt creating a plugin that checks for a local variable set in game on a character. And from what I have seen local variables set in game (string, int, and float) do not appear to be saved in the character .bic file. I looked through the file using leto and the gff editor on nwvault.

Can someone confirm this or where to look in the character file for a local variable?

Thanks!
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Sat Jan 15, 2005 4:10    Post subject: Reply with quote

Local variables set on the PC are NOT saved in the Bic. THey are saved in the running module. Variables set on ITEMS in the player's inventory ARE saved, but I don't believe you can actually see them anywhere. You have to drag them off the item itself....
Back to top
View user's profile Send private message
Liberty Valance



Joined: 06 Jan 2005
Posts: 21
Location: A Persistent World West2

PostPosted: Sat Jan 15, 2005 4:17    Post subject: Reply with quote

what about SetCampaignInt? does that leave something in the character file? i think i'm going to go test this now Smile
_________________
A Persistent World West2 | APWW2 Forums
Wirehead Studios
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Acrodania



Joined: 02 Jan 2005
Posts: 208

PostPosted: Sat Jan 15, 2005 4:26    Post subject: Reply with quote

SetCampaignInt() sets the variable in the Bioware database, NOT the PC .bic file

Just like SetPersistentInt() sets it in the NWNX system.......
Back to top
View user's profile Send private message
Liberty Valance



Joined: 06 Jan 2005
Posts: 21
Location: A Persistent World West2

PostPosted: Sat Jan 15, 2005 4:42    Post subject: Reply with quote

bah. i guess i'll just go with a token-based system then (i.e. an item with a special resref or tag) Smile
_________________
A Persistent World West2 | APWW2 Forums
Wirehead Studios
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Sat Jan 15, 2005 10:13    Post subject: Reply with quote

What you can do is turn the creature hide into a container, and then store locals on an item in that container. That does require a 2da change, but then its persistant as long as ILR and ELC are off.
Back to top
View user's profile Send private message
Orleron



Joined: 01 Jan 2005
Posts: 22
Location: Avlis

PostPosted: Sat Jan 15, 2005 16:43    Post subject: Reply with quote

Local variables set on a hide are persistent just as is, at least in our experience. I am not certain why you suggest turning them into containers. Any insight on that?
_________________
____________________
Blackdagger: The World of Avlis
http://www.avlis.org

The Confederation of Planes & Planets
"Go anywhere. Do anything."
http://www.copap.org
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Sat Jan 15, 2005 17:16    Post subject: Reply with quote

Because then they are persistant on localvault characters too Wink
Back to top
View user's profile Send private message
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Sun Jan 16, 2005 21:35    Post subject: Reply with quote

Acrodania wrote:
Local variables set on the PC are NOT saved in the Bic. THey are saved in the running module.


Cool, thanks.
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
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