kiryleexper

Warper
Member
Joined
Sep 25, 2023
Messages
4
Reaction score
0
First Language
German
Primarily Uses
RMMV
Howdy!
I'm trying to do a game mechanic where i can use items that hit enemys and they trigger an Event and if they don't hit they do not trigger it.
Trying to figure that out for a while now, but i'm a beginner so i might need a proper explanation on what to do.
Thank you in advance!
 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,945
Reaction score
11,887
First Language
German
Primarily Uses
RMMV
you cannot do that directly, and you didn't give enough details to point you to one of the dozen workarounds.
are you talking about using an item on the battlescreen? If yes that is just attaching a common event to the item and have the common event check everything

are you talking about using an item on the map and targeting an event that pretends to be an enemy? That would be a lot more complex because you'll have to use an event pretending to be the item and do a lot more to make it work
 

AquaEcho

Script Kitty
Regular
Joined
Sep 20, 2021
Messages
2,267
Reaction score
1,702
First Language
English
Primarily Uses
RMMV
You can do it with a combination of Mog Pick Up and Throw and CT_Bolt's Event Trigger Event

 

RCXGaming

Champion of Brightmoon Tor
Regular
Joined
Jan 4, 2019
Messages
1,110
Reaction score
3,106
First Language
English
Primarily Uses
RMMV
Is this for combat or on the overworld?
 

kiryleexper

Warper
Member
Joined
Sep 25, 2023
Messages
4
Reaction score
0
First Language
German
Primarily Uses
RMMV
Thank you so much for your replys!
Sorry for not giving enough details.
Yes this is for combat and i want an item to use on an enemy to hit him and then catch him with a specific chance. You can think of it like pokeball, superball etc. The better the item is the better the chance to capture it.
The mog pick up and throw is not what i'm searching sadly.
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,741
Reaction score
11,339
First Language
English
Primarily Uses
RMMV
So you can do it using the default tools the way Andar said.

Make the Item apply a state to its target, then run a common event. The event looks at each member of the troop and if they have that targeting state, does the stuff you want.

Or you execute a few lines of code using a plugin like Yanfly's Skill Core.

Or you Google your question and find there are several plugins and tutorials on how to duplicate Pokéball catching in MV.
 

kiryleexper

Warper
Member
Joined
Sep 25, 2023
Messages
4
Reaction score
0
First Language
German
Primarily Uses
RMMV
Ok thank you i will try that later today and will tell you if it works or if i'm not smart enough to get it to work.
 
Last edited:

kiryleexper

Warper
Member
Joined
Sep 25, 2023
Messages
4
Reaction score
0
First Language
German
Primarily Uses
RMMV
it worked!
Thank you for your help!
 

Latest Threads

Latest Profile Posts

Enemy_MariXimas[Idle].gif
Everyone's getting ready. Mary, in particular, is really mad, why tho?
Well, I've officially filed a complaint against my coworker.
Legit almost killed me twice today.
First time, he was holding a freaking knife straight out and walking down a hallway. I rounded a corner and barely missed it.
Second time, he "handed"(dropped) me a bucket of water while I was trying to adjust the broaster. Not exactly sure what would happen, but water and boiling oil usually don't go well together.
if a lot of the games that inspire me to continue making games have a pretty mixed to somewhat negative critical reception, what does that say about the games I make? :kaoeh:
Hey Y’all! Here’s Day #8! Another round of applause for @hiddenone my hero yesterday. Kind of still flipping between too hot and too cold, but friends, we’re hydrated.
My boss asked I bring my laptop to work so he could see my game. I show my coworkers, show them some database stuff, and then my boss asks "so can I fight this final boss you've talked about a lot?" :kaojoy:

Forum statistics

Threads
136,860
Messages
1,270,791
Members
180,623
Latest member
wal888
Top