Skill/action sequence that acts different if it targets the user?

Captain_Joshua

Veteran
Veteran
Joined
Sep 10, 2017
Messages
50
Reaction score
3
First Language
English
Primarily Uses
RMMV
I wanted to make a skill where the user moves over to their target and patches them up with a healing item. The problem here is that, if the skill is used on the user themself, they simply walk a few steps forward, turn around and the animation weirdly plays on them.
This is my current set-up for the notetag.

<setup action>

display action

immortal: targets, true

</setup action>

<target action>

move user: target, front base, 10
wait: 10

wait for movement

move user: target, base, 5

animation 139: target

wait: 5

action effect

motion chant: user

wait for movement

face user: target

move user: target, front base, 10

face user: target

wait for animation

move user: home, 20

face user: forward

wait for movement
</target action>

How would I go about making an Else function or something like that to make the user perform some different motions when the skill targets themself?
 

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
279
Reaction score
244
First Language
French
Primarily Uses
RMMV
Hi, I guess this is what you need:
Code:
if user === target
    //action sequence if target is the user//
else
    //action sequence if target is someone else//
end
 

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

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top