Jump to content

[LE] Getting conditional variables, and classes


xyz3lt

Recommended Posts

I use factions already, but i first i have to get booleans out of them(2 factions with ints, 2 factions carrying 14 flags. sseedit indicates they are 8 bit, 14 factions to do that would be an overkill).

 

 

Returns 1 if the calling actor is a member of the specified faction.

Quote from creation kit reference page about GetInFaction. No way i can & my flags out of a faction without a script.

there is also GetFactionRank but it can only be compared with standard operators (> < != == <= >=).

 

So unless i am willing to add 16 factions on hundreds of actors it doesn't work.

Also since i would be essentially just putting bools on actors, i might as well use keywords for that.

 

Maybe what you meant is that i should infact make all those factions/keywords add them to actor and onEffectDispell(or whatever end of Magic effect event was called) remove them.

 

I get a feeling i am just overclompicating this, since it seems to work, i'll just go along with my quest idea, i do appreciate all the help though.

Link to comment
Share on other sites

Yes, what I mean is use OnEffectStart with certain conditions, then use SetFactionRank based on those conditions. You should only need 1 faction because With factions you can have a range of ranks from -128 to 127:

https://www.creationkit.com/index.php?title=SetFactionRank_-_Actor

 

In your conditions you can do GetFactionRank == 1 or 2 or whatever.

You can also add those actors to a formlist with OnEffectStart and remove the factions from actors after the scene ends.

 

Faction Property MyFaction Auto 
Formlist Property MyFormlist Auto

Event OnEffectStart(Actor akTarget, Actor akCaster) 
    If akTarget.GetLevel() >= 10 
        akTarget.SetFactionRank(MyFaction, 10) 
        MyFormlist.AddForm(akTarget) 
    Endif 
EndEvent

That's just a suggestion. If the method you are using works then as you said no need to further complicate it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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