Communicating between two activemagiceffects on the same cha

Post » Tue Jun 19, 2012 10:29 pm

So, here is my situation and what I would like to do:

I put an enchantment/ability on a character - one of its effects is a script that inherits from activemagiceffect; We'll call it MagicScriptA

I want to put another enchantment/ability on this player, with a different script that inherits from activemagiceffect; We'll call it MagicScriptB


Is there any way for these two effects to communicate, in a more meaningful way than just "oh hey you exist"?

Ideally, I would like MagicScriptB to be able to get a reference to MagicScriptA and call a function it defines. While I can test if a character is under the influence of a certain magic effect, I don't seem to be able to get a reference to its script.

Anybody have any insight?
User avatar
Michelle Chau
 
Posts: 3308
Joined: Sat Aug 26, 2006 4:24 am

Return to V - Skyrim