Magic Effect Not Working

Post » Tue Aug 19, 2014 8:33 pm

Back with yet another issue :armscrossed:.

Alright. So I have a magic effect that is set to Constant and delivered on self. The magic effect looks like this:

Spoiler

http://i1295.photobucket.com/albums/b630/Matthiaswagg/Screenshot44_zps61516fe7.png

http://i1295.photobucket.com/albums/b630/Matthiaswagg/Screenshot45_zps9dd49198.png - I tried with just the top two conditions, still didn't work.

The magic effect is meant to only cause a scripted effect. It is essentially polling, but because it's more effective and efficient than script polling I want to use an ability.

I want the effect to trigger only on certain conditions. I want it to trigger if A and B are true but C and D are not, or vice versa, or if all of them are true. So if A is bigger than 0, and B is equal to 1, trigger it. If C is bigger than 0, and D is equal to one, trigger it. If A and B and C and D are all true, then trigger it. If A and C are true, but B and D are not, then don't trigger it.

In the condition picture, Horses Owned is A, SRHorseRentEnable is B, Houses Owned is C, and SRHouseRentEnable is D.

Does anyone know what I'm doing wrong? The script on the MGEF never runs.

EDIT: Here's the script.

Scriptname SRMGEFScript extends activemagiceffect  {Sends an event to the quest when the player begins paying rent.}Quest Property SRRentQuest AutoKeyword Property SRRentKeyword AutoEvent OnEffectStart(Actor akTarget, Actor akCaster)        Debug.MessageBox("Working..."); this never fires	SRRentKeyword.SendStoryEvent()EndEventEvent OnEffectFinish(Actor akTarget, Actor akCaster)	;empty eventEndEvent
User avatar
Sebrina Johnstone
 
Posts: 3456
Joined: Sat Jun 24, 2006 12:58 pm

Post » Tue Aug 19, 2014 2:51 pm

You need to put your conditions in the ability effect entry, not the Magic Effect. Magic Effect conditions are only checked once when the Magic Effect is first added to the actor. Conditions on the spell effect are checked every second.

User avatar
Monika
 
Posts: 3469
Joined: Wed Jan 10, 2007 7:50 pm

Post » Tue Aug 19, 2014 12:51 pm

So I can completely remove them from the magic effect?

User avatar
Maddy Paul
 
Posts: 3430
Joined: Wed Feb 14, 2007 4:20 pm

Post » Tue Aug 19, 2014 10:43 am

Still didn't work. I'll try with barebones conditions in a bit.

User avatar
megan gleeson
 
Posts: 3493
Joined: Wed Feb 07, 2007 2:01 pm

Post » Tue Aug 19, 2014 8:14 am

Tried it with only the conditions GetPCMiscStat Horses Owned > 0 and GetPCMiscStat Houses Owned > 0, and then went and bought a horse. The effect never showed. I'm not sure what's going on, but the script never initializes.

User avatar
Juan Suarez
 
Posts: 3395
Joined: Sun Nov 25, 2007 4:09 am

Post » Tue Aug 19, 2014 3:18 pm

I tried it with absolutely no conditions and it worked, but I need at least the two GetPCMiscStats, so I need help getting those working.

User avatar
sam smith
 
Posts: 3386
Joined: Sun Aug 05, 2007 3:55 am


Return to V - Skyrim