Animositisomina Posted September 9, 2014 Posted September 9, 2014 I have this script that will add a newly created bow to the player's inventory, which works fine, but I was wondering how I could change it to an axe instead. Specifically, what I mean is there is a line in the script that says "object oBow = GetObjectByTag("asr_nameofbow");" -- what I'm wondering is, how do you know what to put in place of "oBow"? Is there a list of valid values anywhere? For example, I know "oRing" works for rings, but I only discovered that by testing it myself. It would be really handy to have a complete list of values that will work there, instead of having to guess them.
Animositisomina Posted September 12, 2014 Author Posted September 12, 2014 After doing some more testing, it seems that "oBow" can be anything. It could say "oFudgeNutSundae" and it would still work. I'm no programmer, so I can't explain why. But at least I know now that it doesn't need to be a specific thing for specific items (e.g. oRing for a ring).
mcgoy Posted September 13, 2014 Posted September 13, 2014 The toolset wiki is your friend :laugh: Moving forward, the following link might help:http://social.bioware.com/wiki/datoolset/index.php/PRCSCR_Script_Templatesboth the toolset wiki and the dragon age wiki are important if you want to learn how to create (or alter) mods for your game object oBow = GetObjectByTag("asr_nameofbow"); "object oBow" creates a variable named oBow of type "object" GetObjectByTag("asr_nameofbow") 'Gets' the object with the tag asr_nameofbow the equal sign sets the variable oBow equal to the object with the tag asr_nameofbow
Animositisomina Posted September 13, 2014 Author Posted September 13, 2014 I went through the wiki prior to posting this thread, actually. Thoroughly, in fact, but I was not able to find anything relating to what I needed. While I already have the info now and have made several mods at this point, I do appreciate the link. Thanks.
Recommended Posts