Is it Possible to make Skill Scope Target Units with a Certain State?

Desperado

Villager
Member
Joined
Jul 30, 2018
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Hey All,

Looking for a way to alter the scope of a skill to check for enemies/actors with a certain state? I've gotten really close to what I want, but I need a way to check for this before the skill occurs. Through web searching I found a way to do it after the skill has been executed through the damage formula: if b.state?(2); dmg = [X]; else; b.result.used = false; end; dmg

But I want it to happen before the skill is used. Does anyone know of any possible scripts or solutions that could help?
 

mellanny

I have no idea what I'm doing
Veteran
Joined
May 4, 2020
Messages
89
Reaction score
32
First Language
Portuguese
Primarily Uses
RMMV
you want it to be at the "select target" part, or at the "action" part?
 

Desperado

Villager
Member
Joined
Jul 30, 2018
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMVXA
It will be an enemy skill. I'm using it to have them distinguish between a target they marked earlier and all the others on the field. So in round 1 they use a skill A that "marks" one of the actors by applying a state to him. In round 2 they will then "choose" to attack that actor with the skill B by "seeing" that he is marked with that state.

There's a bit more to what I'm doing than that but that's essentially what I'm going for.

Edit: All of that to say the "select target" part I guess?
 
Last edited:

Desperado

Villager
Member
Joined
Jul 30, 2018
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMVXA
That's MV so...no.

There is a VX ACE version but it doesn't seem to do what I need.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,064
Reaction score
1,484
First Language
EN
Primarily Uses
RMMZ
This one looks promising:
I'm not familiar with VX Ace's scripting system, though, so can't help you there. :kaoslp:
 

Desperado

Villager
Member
Joined
Jul 30, 2018
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMVXA
This one looks promising:
Yeah this might be a good start. Sadly, I don't know scripting or Ruby syntax. But at least it seems this might indicate it is possible.​
Thanks for this.​
Edit: Would it be something like this to get this script to work how I want?:​
<Scope condition: b.state(33)>​
 
Last edited:

Desperado

Villager
Member
Joined
Jul 30, 2018
Messages
13
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Ok, this is for future generations:

If you're looking to solve this problem of making enemies/actors attack based on a state:

1. Use the following script: https://himeworks.com/2013/04/scope-conditions/
2. Go to the skill note tags section for the skill of your choice
3. Insert the tag: <Scope condition: b.state?(X) /> Where X is the number of the state you want the skill to target
4. Change the scope of the skill in the dropdown to "All Enemies"

Profit!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Evil7 added!


I did a bit of a remake on one of the maps, also I made a particle for jumping into the portal, and one for traveling through the portal. I'll probably add more sparkles later to embellish it. :LZSwink:
Polished the animation and added details :kaojoy:
Ami
What do you think about the Wood Bridge inside of Volcano?
Yet another gaming question, i'm currently playing Last of Us 2 and want to get another game to play next but can't decide between Ghost of Tsushima, Miles Morales & Jedi Fallen Order. After the latest mandalorian i AM on a star wars kick, but i also LOVED the last spiderman game that prequels Miles Morales. Ghost of Tsushima is the bottom of my list but i heard it was AWESOME. Just want a good story & fun gameplay.

Forum statistics

Threads
105,686
Messages
1,015,541
Members
137,362
Latest member
sdramose
Top