Jump to content

Question about scripting variables


Animositisomina

Recommended Posts

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.

Link to comment
Share on other sites

The toolset wiki is your friend :laugh: Moving forward, the following link might help:

http://social.bioware.com/wiki/datoolset/index.php/PRCSCR_Script_Templates

both 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

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...