State assistance

skyshadow235

Villager
Member
Joined
Oct 25, 2015
Messages
21
Reaction score
1
First Language
English
Primarily Uses
I am using Yanfly's Skill Core to try to set a skill with a custom restriction that check's if the user is under a certain state. I know I've been able to get the game to recognize if the state is there in the first place by using $gameActors.actor(1).states().contains(16), problem is (even without the fact that for some reason this still didn't work) this only checks for a certain state on 1 specific actor. Is there a way to have the game check to see if the user is under that specific state as apposed the a certain actor in question?
 

skyshadow235

Villager
Member
Joined
Oct 25, 2015
Messages
21
Reaction score
1
First Language
English
Primarily Uses
I figured out what was wrong with 1 actor but considering all the views and no replies; I guess there really is no way to make it target the current user without duplicating the skills and class for each actor... I'll leave this up for a few days in the hopes of someone with enough coding knowledge to be able to assist me before trying to figure out how to ask a moderator to close this topic  ;_;
 

Dalamar

Veteran
Veteran
Joined
Apr 29, 2013
Messages
370
Reaction score
61
First Language
English
Primarily Uses
RMMV
Couldn't you just have the state add the skill you want?
 

skyshadow235

Villager
Member
Joined
Oct 25, 2015
Messages
21
Reaction score
1
First Language
English
Primarily Uses
its possible to add the skill using the state but the skill will remain even after the state is lost. To create an entire systematic series of events using troops event commands also is time consuming and it would be a much slower process than using the SkillCore.
 

lohenien

Veteran
Veteran
Joined
Mar 15, 2012
Messages
153
Reaction score
8
First Language
english
What effect does the skill have? is it a damaging skill?

For damaging skills you can alter the damage formula with something similar to a.is_State(stateID) ? yes formula : no formula
 

Dalamar

Veteran
Veteran
Joined
Apr 29, 2013
Messages
370
Reaction score
61
First Language
English
Primarily Uses
RMMV
@skyshadow235

I think you misunderstood me, add the skill to the state in the state tab, when the state is removed so will the skill.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top