
I realize this is a pretty basic question but something still isn't clicking after several hours of trying to figure out existing scripts and goofing around with the API, so I'm hoping someone can save me further frustration. I feel like I am just overlooking something simple and a nudge from one of you might help it all click.
I'm having trouble figuring out how to get things to and from Characters and my script.
Lets say I have a character Bob with the attributes Will and Morale.
1) I want to assign the value that is currently in the Will attribute to a variable within the script that I can do things with.
2) After I do stuff in the script, I would like to assign a value from a variable in the script to the Morale attribute.
This will be for a finite, predetermined set of characters so I'm not worried about making it too dynamic or fancy.
As best I can figure this should use a getObj() and the character and attribute _id, but something isn't clicking for me.
Sorry for what is probably a pretty obvious and simple question, but I am hoping one of you won't mind pointing me down the right path.
Thanks!
I'm having trouble figuring out how to get things to and from Characters and my script.
Lets say I have a character Bob with the attributes Will and Morale.
1) I want to assign the value that is currently in the Will attribute to a variable within the script that I can do things with.
2) After I do stuff in the script, I would like to assign a value from a variable in the script to the Morale attribute.
This will be for a finite, predetermined set of characters so I'm not worried about making it too dynamic or fancy.
As best I can figure this should use a getObj() and the character and attribute _id, but something isn't clicking for me.
Sorry for what is probably a pretty obvious and simple question, but I am hoping one of you won't mind pointing me down the right path.
Thanks!