Need help with scripting. Huge noob
tizzdelawizz
Member Posts: 3
Hey guys, I'm working on a small PW and I'm stumped on how to make item variables work as a condition for text appearing in conversations and so on. Does anyone happen to know how to do this or have a script on hand? Thanks in advance for any help.
0
Comments
Basically I want to use variables on an item to persistently save quest progress instead of having a separate token item for every part. I've played on a few PWs before and they all seem to use a single character token, which I assume is where all that is stored. Sadly I can't find a way to do this with the script editor - I can add the variables but not use them in a "text appears when" check
If the tag is not unique, you might need to use GetItemPossessedBy(GetPCSpeaker(), "whatever") instead of GetObjectByTag().
GetLocalString() can be used for string variables.
See Lexicon for more detail on functions.
I'm not an expert on making item variables persistent, as it's a PW-specific issue. It has been discussed many times, but if you have issues with that, try asking in the PW sub-forum or Neverwinter Vault.
Is that what you are looking for?
You can is if/else instead of switch(I try to make myself use switch, because I know it takes less CPU, and I want to get in the habit)