Help with a complicated event involving enemy skills.

Timothy Taber

Villager
Member
Joined
Jul 6, 2017
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMMV
I have a very complicated idea that I would like some guidance with implementing. I have no actual scripting experience, but would like to try.


I assume I need a conditional branch to start, I want to have an event where an enemy will check if another enemy is alive. (Check for Enemy Status?)

If it is alive, determines if it uses the skill.

Then after using the skill it checks which actor was hit. (Check ActorID)

And displays a reaction text. I want a few dialogue options but I know how to randomize dialogue.

The idea is the enemy grabs the other enemy and throws it at the PC resulting in their reaction.


Where do I even start with this.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,355
Reaction score
8,081
First Language
German
Primarily Uses
RMMV
at minimum, you'll need a number of troop events setting states to control the enemy action patterns.
then each enemy needs to have an action pattern that reacts to the states for skill selection.

it can be done that way but requires advanced eventing knowledge.
or you have to request a plugin that enables new options for skills, and with that sequence it most likely have to be a custom plugin...
 

Timothy Taber

Villager
Member
Joined
Jul 6, 2017
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMMV
It could be done with scripting, right.

Wouldn't the starting if else statement be to just check if enemy state is KO. This is a very specific event, Enemy 1 would check for Enemy 3 and Enemy 2 would check for Enemy 4.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
747
Reaction score
407
First Language
English
Primarily Uses
RMMV
By default, no, because enemies don't use the knockout state (you can see this in your game, when you kill an enemy they aren't sitting around as a corpse, they're removed from the battle).

You can get some ideas of how to work around it from this thread:

Anything can be done with script (Javasript), as that's the actual code of the game, but getting into that is automatically a higher level of complexity than events, which you can easily do inside the game. I always suggest people who don't have coding experience learn their way around events before starting to learn JS to accomplish things, as there's a larger learning curve there.
 

Timothy Taber

Villager
Member
Joined
Jul 6, 2017
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMMV
I might try to see what I can parse as script idea and post it later for advice.

So I believe I have the randomized dialogue figured out. I made an if else that if the character has the state it plays the dialogue. However the problem is the attack does not cause the event. If I inflict it from the troop screen it happens, but when the attack is used it doesn't activate.

Course I also call the event as well from the troops screen.

Here is a general idea of the common event and Troop effect that worked.


Common Event

If:Actor 1 is affected by State
Control Variables: Randomize 1..3
If : Randomize = 1
Text : Dialogue 1
End
If : Randomize = 2
Text : Dialogue 2
End
If : Randomize = 3
Text : Dialogue 3
If:Actor 2 is affected by State
Control Variables: Randomize 1..3
If : Randomize = 1
Text : Dialogue 1
End
If : Randomize = 2
Text : Dialogue 2
End
If : Randomize = 3
Text : Dialogue 3
End
End
Else
End


Troop

Change State: Actor 1, + State
Common Event: Common Event
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Dragonfly3116 wrote on Redweaver's profile.
i need to ask do you mind sending me a link to tutorial town an legend of ancients Please My new Email is necroboy1973@gmail.com
I Am A Member On The Site Here As Well If Your Still teaching Let Me Know Thanks Joseph
Added store elements.
44JtdpE5n4jQMFkSi7pACW.png

2uqvqT3uCWxcXAhlyZokxg.png

The next step will be to start making props (including distillers).
I just saw one of SigmaSuccor's RPG Maker news videos, it mentioned one of my plugins. Now I kind of wish I'd made a demo project for it, having nothing in that segment but a scroll down the code feels a little underwhelming given what the plugin COULD do. Except I suck at making demo stuff, and my testing project isn't fit for that. :(
Ok, to prepare for the GMTK Game Jam, I'm trying to make a game with the theme "The Cat's out of the Bag" in about 48 hours. I'd make a forum post with a question, but I don't have the time!
Worked over a week on a new BGM, and I'm finally happy with it.

Here are some screenshots of the area it will be used in
EzLHppdVIAMY7DP


EzLHpqsVIAEZ7jt

Forum statistics

Threads
110,516
Messages
1,053,891
Members
143,606
Latest member
peachdev
Top