Post new topic    
Slime
Send private message
How to make an attack chain more when a spell is used? 
 PostSat Oct 17, 2020 5:08 pm
Send private message Reply with quote
Hello! I'm new here, and to the OHRRPGCE so just wanna say it's good to be here. I'm working on a battle system for a game and had one question.. with maybe a couple minor others as well.

Ok, so here's my situation and what I want to achieve; My hero has a basic melee attack that hits once. He also has a magic spell that, when cast, allows that melee attack to chain into a combo. What I want is to be able to cast that magic spell a second time, allowing the attack to chain even further into an even bigger combo.

Here's my setup; I've got three attacks (whack, bop, and smash) and one spell (combo trigger)

The first attack (whack) chains into the second (bop) with the condition of a tag check. If (always) and tag 4=On then chain into bop.

Now my spell, combo trigger, has the following in the "tags" menu;
On Use
If (always)
Set tag 4=On
On use
If tag 5=on
Set tag 6=On

Ok, so this works to activate that bop chain. If I whack without using combo trigger, there is no bop.

OMG I totally figured it out while typing this... Ok so I got the three hit combo down when using the combo trigger twice.

So NOW my question is.. How do I reset all these tags I flipped after a battle? They stay on so on the subsequent battles he starts off with the whole whack bop smash combo.
Just a vessel for dank memes
Liquid Metal King Slime
Send private message
 
 PostSat Oct 17, 2020 6:32 pm
Send private message Reply with quote
Hello, and welcome!

I think the best way to reset the tags after battle is with an after-battle script.

Code:

plotscript, after battle, won, begin
  set tag(4, off)
end


After you compile and import the script, you can set that as the global After Battle Script in the "Edit General Game Data" / "Special Plotscripts" menu.
Slime
Send private message
 
 PostSat Oct 17, 2020 7:17 pm
Send private message Reply with quote
Thanks! That worked perfectly. Are you James Paige? I'm so sorry about that fatal marshmallow incident...

But thanks for making this engine! Really appreciate it.
Just a vessel for dank memes
Liquid Metal King Slime
Send private message
 
 PostSat Oct 17, 2020 7:28 pm
Send private message Reply with quote
It was tragic! The marshmallow burns were so extensive that there was only enough of me left to reconstruct as a hamster.

And you are welcome! :)
Display posts from previous: