Hello rpg makers,
I have a question regarding custom formulas.
In my game, Elves got a passive skill called Half-Dream which changes the sleeping state to a state allowing only the use of magic.
I'd like the sleep applying skill to apply a different state to characters tagged as Elves.
The tag itself is contained in a variable called "Race", where the number 2 is associated with the Elves.
I can't really use a specific actor tag in the formula as the player is free to define each of his characters' races.
I was thinking about something like :
If var(race)=2 then apply state (Half-Dream)
Else apply (Sleep)
The thing is that I'd want the game to take into consideration the race of the receiver of the attack (which would be B.smthg if i'm correct), but I can't seem to understand how to connect both (target being an elfe).
Would you mind helping me with that ?
Thanks a lot !
I have a question regarding custom formulas.
In my game, Elves got a passive skill called Half-Dream which changes the sleeping state to a state allowing only the use of magic.
I'd like the sleep applying skill to apply a different state to characters tagged as Elves.
The tag itself is contained in a variable called "Race", where the number 2 is associated with the Elves.
I can't really use a specific actor tag in the formula as the player is free to define each of his characters' races.
I was thinking about something like :
If var(race)=2 then apply state (Half-Dream)
Else apply (Sleep)
The thing is that I'd want the game to take into consideration the race of the receiver of the attack (which would be B.smthg if i'm correct), but I can't seem to understand how to connect both (target being an elfe).
Would you mind helping me with that ?
Thanks a lot !