Difference between revisions of "Talk:Magic effect scripts"
Jump to navigation
Jump to search
variables in magic effect scripts
imported>DragoonWraith (some organization, and a quesion about how variables are stored from Magic Effect Scripts) |
imported>Scruggs (variables in magic effect scripts) |
||
Line 19: | Line 19: | ||
Basically, what I'm trying to do is split up a script that is too long (currently 10,060 lines, though only 70 or so will ever run at a time). An ability is added, does its part, and adds another ability on top of that that continues the script, but it needs to have the data from the first part of the script. Is there any hope? | Basically, what I'm trying to do is split up a script that is too long (currently 10,060 lines, though only 70 or so will ever run at a time). An ability is added, does its part, and adds another ability on top of that that continues the script, but it needs to have the data from the first part of the script. Is there any hope? | ||
: As far as I can tell, the variables in a spell script remain separate. Typing ''sv'' while an affected NPC is selected in the console won't list any magic effect script vars, and trying to access them via ''show ActorID.spellVar'' likewise fails. I doubt very much that two different spell scripts running on the same actor and having two identically named variables would share the values of those variables; the name you give to the variable in your script may be identical, but they are processed by the game the same way variables with unique names are processed. Being in separate scripts keeps them isolated. | |||
: You can easily pass the values of the variables in the first ability script to a quest script, and have the second ability script read those values into its own variables when it starts running. [[User:Scruggs|Scruggs]] 22:05, 8 July 2006 (EDT) |