Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Other Conditions?

A topic by Essent created Nov 11, 2020 Views: 508 Replies: 19
Viewing posts 1 to 6

Hello! I'm not really too well versed in JavaScript tags and stuff but I just wanted to ask about the conditions part of the parameters. Is there a method of having a voice clip play when the speaker is under a certain state (like Sleep) or if the speaker makes a critical hit? Perhaps if a battle lasts for a certain amount of turns?

Developer (1 edit)

Critical hit isn't implemented (possible idea for the future, though) and might be tough (impossible?) to do with a "conditions" tag without some really complicated setup. The other two should be doable. I'm not in a position to test them this minute, but try these.

condition=speaker.isStateAffected(###) (Replace the "###" with the ID of the Sleep state)

condition=$gameTroop.turnCount() >= ### (Replace the "###" with the number of turns you want to check for. Make the >= into == if you want it to ONLY be a specific number of turns - like 5, not 6 or 7.)

Alright, thanks! I'll try these out and let you know how they do.

An addition to my question. Is it possible for clips with the "hurt" tag to be variants depending on how much damage is done to the speaker?

I've tried what was suggested but they don't seem to be working.

Developer (1 edit)

Can you post, in full, the <voice> tag of an actor/enemy using these conditions?

Here it is. I'm not sure if I did anything wrong somewhere since it looks alright to me.

<voice>

persona|naruakibasesummon1|

persona|naruakibasesummon2|

seeker|seekersummon1|

seeker|seekersummon2|

seeker|seekersummon3|

pixie|naruakipixiesummon|

dodge|naruakievade1|

confuse|naruakiconfuse1||sub=Naruaki: Gh... Where is this place...?|condition=speaker.isStateAffected(10)|

forget|naruakiforget2|sub=Naruaki: What do you mean by... Persona...?|condition=speaker.isStateAffected(8)|

battleend|naruakiresults2|condition=$gameTroop.turnCount() >= 2

</voice>

Developer (1 edit)

I'll look at them later, but I might have misunderstood what you wanted for states. They won't trigger the moment they're put under the states, and you might be best off putting the lines in the skills that make them confused/forgetful, provided you're using Action Sequences.
As for why the last one wouldn't work? I'd need to look into it. I might have made a typo or false assumption.

Oooh, gotcha. I wanted to have the status clips play as soon as a new turn began.

Developer

Actors having "turnstart" clips is a case of "why did I never think of this before?" that crossed my mind a couple of days ago. Had I implemented such a case, that would be what you want, with the conditions mentioned before of course.

Would it be possible in a future update?

Developer

Okay, finally got a chance to work on this. I don't have a problem with the turnCount command at all, but I think I'll try to implement turnstart clips as well as a couple of others I'd considered.

Sounds great. I’m glad to have helped in that regard.

Also, would it be possible to implement compatibility with SRD’s Summon Core? Perhaps with a condition or special tag for when an actor is summoned and desummoned?

Developer (1 edit)

Hm, I dunno about that. Can you use Yanfly's Action Sequences with that plugin? If so, that's my recommendation. But trying to write a special case for every single last plugin out there isn't really feasible - Yanfly I cover only because his plugins are so powerful, well-known, and easy to work with.

I managed to figure it out with the Yanfly plugins. It just took me a bit to figure out that the summon skills have the actors they summon  as the targets and I didn’t need to specify actor ids or anything.

Developer

Awesome! Anyway, if you didn't see an alert for it, the plugin was updated with not only "turnstart" but several different tags for escaping battles. I'm open to suggestions on more, but I typically avoid anything that happens during a skill's usage (other than things like hurt and dodge) due to my Action Sequence support.

Sounds awesome!

Figured out what was causing the turn count clip to not work. I had the plugin above the two victory aftermath plugins. I placed it below them and it works.

Does it count as necroposting if it’s a thread I started? Oh well.

I’ve been making use of the new tags! Though the turnstart tag can only do so much since it only works when I selected a certain actor. Is it possible to make another version of the tag for before I select anyone? That way there aren’t any overlaps when it comes to, say, reacting to a party member having low health.

Or is that already possible in some way?