Change actor effects script

Post » Tue Mar 22, 2011 3:21 am

Is there anyway to change the actor effects of a creature through a script? I want to remove one and add another.
User avatar
Michael Korkia
 
Posts: 3498
Joined: Mon Jul 23, 2007 7:58 pm

Post » Mon Mar 21, 2011 7:42 pm

I'm not sure if theres a way to do it via script. But could you perhaps have two creatures, each with one effect that you want, then just swap them out for one another?
User avatar
Zach Hunter
 
Posts: 3444
Joined: Wed Aug 08, 2007 3:26 pm

Post » Tue Mar 22, 2011 8:43 am

Yeah I had a similar thought, but I wouldn't know how to do it. I want to change the actor effect, or swap the creature when the player uses an activator. It would be affecting the base, not any one reference.
Also, I'm having trouble finding good documentation for the base game script commands, If you know of good place to find that, I may be able to work something out on my own.
User avatar
Amy Masters
 
Posts: 3277
Joined: Thu Jun 22, 2006 10:26 am

Post » Mon Mar 21, 2011 10:08 pm

You can use the WIKI.
http://geck.gamesas.com/index.php/Category:Functions
User avatar
le GraiN
 
Posts: 3436
Joined: Thu Mar 22, 2007 6:48 pm

Post » Tue Mar 22, 2011 11:22 am

That's what I've been using. I think I found a way to do what I need, i just changed the effect script to check a variable and either do its default or my addition based on that, however i cant get the activator script to modify that variable.
I tried using an example I found in sticky's scripts... "set StickyRef.goodbyeStage to 1" But I cant get it to recognize the variable. It is "set effectIDRef.variableName to 1" correct?
User avatar
D IV
 
Posts: 3406
Joined: Fri Nov 24, 2006 1:32 am

Post » Tue Mar 22, 2011 4:06 am

Well it depends, where did you place the variable? Its the ref of the object the script is running on that contains the variable that you need to put. Also make the object running the script with said variable a persistant reference.
User avatar
Emma Copeland
 
Posts: 3383
Joined: Sat Jul 01, 2006 12:37 am

Post » Tue Mar 22, 2011 7:06 am

Currently the Variable is on the effect script and I am trying to change it via the activator's script. Should I have the variable on the activator script? If so, how do i check that variable from the effect script?
User avatar
Dean Brown
 
Posts: 3472
Joined: Fri Aug 31, 2007 10:17 pm

Post » Tue Mar 22, 2011 9:25 am

I got it working now, turns out i wasn't using the reference correctly. I moved the variable to the activator and got it to check that variable from the effect script.
User avatar
Louise Lowe
 
Posts: 3262
Joined: Fri Jul 28, 2006 9:08 am


Return to Fallout 3