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

Captain_Joshua

Veteran
Veteran
Joined
Sep 10, 2017
Messages
48
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
134
Reaction score
74
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

Well it's been almost a whole year since I joined RMW, so i figured I should update my status.
This is my updated status.
Here's a sample of some pixel edits I made.

Maybe for use as sidewalks.
If there are any mods or admins online, could you please see about the re-translation pages for RPG Maker MV? They are all down :rsad:
Werewolf cons: you lose control of yourself once a month and could accidentally kill your friends. Vampire cons: no garlic bread. The choice is simple. Werewolf for sure.
2 huge market drops in 2 days. So glad I sold my non-dividend stocks about 2 weeks ago. And if the dividend ones drop heavily, hey more cheap stocks for me!

Forum statistics

Threads
94,526
Messages
921,605
Members
124,378
Latest member
friskyomega
Top