Difference between revisions of "Category talk:Scripting"
Jump to navigation
Jump to search
no edit summary
imported>Tegid |
imported>Eallman |
||
Line 43: | Line 43: | ||
:[[User:Tegid|Tegid]] 14:48, 6 April 2006 (EDT): Read the ModAV page again. From my understanding you merely need to set player.modav back to 0 to remove the effect. If that doesn't help, you can always use GetAV and SetAV to do temporary modifications. | :[[User:Tegid|Tegid]] 14:48, 6 April 2006 (EDT): Read the ModAV page again. From my understanding you merely need to set player.modav back to 0 to remove the effect. If that doesn't help, you can always use GetAV and SetAV to do temporary modifications. | ||
Not according to the page: | |||
"If you use ModActorValue in a script, the Script Modifier is adjusted, and ONLY a script can adjust it back. In other words, if you have a script do | |||
player.modav health 100 | |||
you are also responsible for doing | |||
player.modav health -100 ". | |||
So, you need to SPECIFICALLY reduce the mod by an equal amount, BUT the compiler apprently won't accept a negative variable as a parameter, only a positive one. | |||
The problem is constructing the script in sucha way that you gon't get a looped reference from player.getav. Working on it. | |||
EA |