i have 2 questions regarding base/actor effects. The first question is, how can i apply a actor effect through a script? Here the code from my script:
scn WaterHeal1Menu
int iButton
Begin ScriptEffectStart
Begin GameMod
set iButton to GetButtonPressed
if Button == -1
Return
elseif iButton == 0
[???]
elseif iButton == 1
player.showrecipemenu WaterModPWaterRecipes
endif
RemoveMe
End
int iButton
Begin ScriptEffectStart
Begin GameMod
set iButton to GetButtonPressed
if Button == -1
Return
elseif iButton == 0
[???]
elseif iButton == 1
player.showrecipemenu WaterModPWaterRecipes
endif
RemoveMe
End
At the [???] i want to apply the actor effect WaterHeal1Purified [000B878F] to the player character, how can i do this?
My second question is for a base effect. This effect is a script effect, the effect is added to an ingestible. How can i check if the ingestible, to which the effect was added, is a reference to a ObjectID?
My first try was this:
scn WaterModGenericAddScript
begin ScriptEffectStart
if GetIsID NukaCola
player.additem NukaColaBottle
endif
end
begin ScriptEffectStart
if GetIsID NukaCola
player.additem NukaColaBottle
endif
end
This didn't work. Is is possible to check the object to which the effect is attached?