Jump to content

Spell conditions don’t work as intended


Recommended Posts

So I made a spell with 2 magic effects. 1 will trigger on a dead male body of non elf races and the other effect will only trigger on a dead female elf race.

 

The 1. Effect works exactly as intended

 

The 2. Effect somehow works on any dead female regardless of race instead of working on elven females only

 

The conditions for the second effect are as follows:

 

GetDead = 1 and

Getissex female = 1 and

Getisrace highelf = 1 or

Getisrace darkelf = 1 or

Getisrace woodelf = 1 or

Getisrace snowelf = 1 or

 

For some reason this effect works on any female of any race still.

 

Even though I did the exact same conditions but with male and humanoid races on the first effect which works as intended...

 

Help pls

Link to comment
Share on other sites

That would have been my last resort since I would also have to exclude any creature race I didnt want which would mean an extremely long conditions list.

 

I specifically need this to work by including the races I want it to affect. ill try changing around the order of the conditions tomorrow ...

 

Thx for the reply :)

Link to comment
Share on other sites

You wrote: ".. I did the exact same conditions but with male and humanoid races on the first effect which works as intended"

unfortunately you didn't post the working condition for the male effect

 

Maybe you could avoid race conditions by using voicetype check as follow. We also assume the Target conditions run on Target (not on Subject).
Vampire [KYWD:000A82BB]
MaleElfHaughty [VTYP:00013AF0]
FemaleElfHaughty [VTYP:00013AF1]

Target    Func.Name        Func.Info                    COMP    Value      effect(1) male
-------------------------------------------------------------------
    T    GetDead           NONE                         == 1.00  AND
    T    HasKeyword        Keyword: 'Vampire'           == 0.00  AND
    T    GetIsVoiceType    VoiceType: 'MaleElfHaughty'  == 1.00  AND
Target    Func.Name        Func.Info                    COMP    Value      effect(2) female
-------------------------------------------------------------------
    T    GetDead           NONE                         == 1.00  AND
    T    HasKeyword        Keyword: 'Vampire'           == 0.00  AND
    T    GetIsVoiceType    VoiceType: 'FemaleElfHaughty'== 1.00  AND
Edited by ReDragon2013
Link to comment
Share on other sites

Thx for the reply but I already managed to fix it. Turns out for some reason the order of the conditions o the second effect was wrong. Putting the is female condition under an or condition so it never really checked which race the female was since being female alone would already fulfill the condition.

 

To anyone facing a similar problem: make sure the order of your conditions makes sense.( It goes from top to bottom)

Link to comment
Share on other sites

I've been following this, though I didn't feel I had anything to add.

 

You say its sorted and I know about the order counting, from top to bottom, but I'm missing something.

 

The conditions in the original post looked right to me.

 

You said in the last post that "Putting the 'IsFemale' condition under an 'OR' condition" was the issue. The 'IsFemale' condition is under an 'AND' statement in the original post. To me that was right.

 

Did you type the wrong conditions in the original post?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...