View previous topic :: View next topic |
Author |
Message |
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Sat Jan 15, 2005 4:04 Post subject: Local vars in character files? |
|
|
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 |
|
|
Acrodania
Joined: 02 Jan 2005 Posts: 208
|
Posted: Sat Jan 15, 2005 4:10 Post subject: |
|
|
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 |
|
|
Liberty Valance
Joined: 06 Jan 2005 Posts: 21 Location: A Persistent World West2
|
|
Back to top |
|
|
Acrodania
Joined: 02 Jan 2005 Posts: 208
|
Posted: Sat Jan 15, 2005 4:26 Post subject: |
|
|
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 |
|
|
Liberty Valance
Joined: 06 Jan 2005 Posts: 21 Location: A Persistent World West2
|
|
Back to top |
|
|
Primogenitor
Joined: 08 Jan 2005 Posts: 88
|
Posted: Sat Jan 15, 2005 10:13 Post subject: |
|
|
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 |
|
|
Orleron
Joined: 01 Jan 2005 Posts: 22 Location: Avlis
|
Posted: Sat Jan 15, 2005 16:43 Post subject: |
|
|
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 |
|
|
Primogenitor
Joined: 08 Jan 2005 Posts: 88
|
Posted: Sat Jan 15, 2005 17:16 Post subject: |
|
|
Because then they are persistant on localvault characters too |
|
Back to top |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Sun Jan 16, 2005 21:35 Post subject: |
|
|
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 |
|
|
|