Essention

Essential
Member
Joined
Oct 6, 2020
Messages
24
Reaction score
28
First Language
English
Primarily Uses
RMMV
So...

I have SRD_SummonCore, Jay_BattleVAManager, and Yanfly action sequences.

I wanted to have an if-else statement in terms of the summon voice clips reacting to different things upon summon.

One condition is if the summoner is low on health. The other is if another actor acting as a summoned character is in battle.

How I have it is...

if $gameActors.actor(x).hpRate <= [number]
VOICE target: voicetag
else if $gameParty.battleMembers().indexOf($gameActors.actor(y)) > -1
VOICE target: voicetag
else
VOICE target: voicetag
end

The summoned actor I want talking is the target as seen in the statement. The low health reaction to actor x works... But it seems to skip over the “else if” condition despite actor y being present and goes straight to the last “else”.

The main party is full with four members and I assume the summoned actors act as reserve members? I don’t know.

Am I writing this wrong?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
763
Reaction score
416
First Language
English
Primarily Uses
RMMV
Instead of $gameParty.battleMembers, look for the actor in $gameParty.summonMembers()
 

Essention

Essential
Member
Joined
Oct 6, 2020
Messages
24
Reaction score
28
First Language
English
Primarily Uses
RMMV
So then that would make the condition...

$gameParty.summonMembers().contains($gameActors.actor(y))

...Right?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
763
Reaction score
416
First Language
English
Primarily Uses
RMMV
Should do it - I suspect it would take less time to test it in the game than to post and wait for a response :stickytongue:

Does it do what you want?
 

Essention

Essential
Member
Joined
Oct 6, 2020
Messages
24
Reaction score
28
First Language
English
Primarily Uses
RMMV
Unfortunately the call here isn't working.

I want a summoned actor to react to the presence of another summoned actor brought in before the recent one; same turn or otherwise.

Party member 1 summons the first actor. Party member two summons the second one.

The second one plays a voice clip reacting to seeing the first one.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
763
Reaction score
416
First Language
English
Primarily Uses
RMMV
Try a loop, just to make sure it isn't some weirdness with the array.

Code:
for (var i=0; i<$gameParty.summonMembers().length; i++
{
    if ($gameParty.summonMembers()[i] === $gameActors.actor(actorId))
        play your voice file or pop up a test text window or something
}

Unless I'm misreading something in the plugin.
 

Essention

Essential
Member
Joined
Oct 6, 2020
Messages
24
Reaction score
28
First Language
English
Primarily Uses
RMMV
Try a loop, just to make sure it isn't some weirdness with the array.

Code:
for (var i=0; i<$gameParty.summonMembers().length; i++
{
    if ($gameParty.summonMembers()[i] === $gameActors.actor(actorId))
        play your voice file or pop up a test text window or something
}

Unless I'm misreading something in the plugin.
Fell asleep; how is a loop done in an if-else statement? Do I copy this right after the "else if" part?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
763
Reaction score
416
First Language
English
Primarily Uses
RMMV
You would have to make a function out of it and save it as a plugin, then call that function in the conditional branch in the event.

But really, what you had before should work - can you post screenshots of the event and the summoning skills?
 

Essention

Essential
Member
Joined
Oct 6, 2020
Messages
24
Reaction score
28
First Language
English
Primarily Uses
RMMV
You would have to make a function out of it and save it as a plugin, then call that function in the conditional branch in the event.

But really, what you had before should work - can you post screenshots of the event and the summoning skills?
It's not really an *event* as I have to put everything in the notes of the skill.

1615484105568.png

The plugin reads the notes and works out the function from there.
That said... This is what I put.

Code:
<Summon>
Actor ID: 16
Level: actor.level
Turns: 1
Animation: 122
Exit Animation: 121
<End Summon>
<Instant>
<setup action>
VOICE user: persona, partnertrue
</setup action>
<follow action>
add state 57: user
</follow action>
<finish action>
if $gameActors.actor(15).hpRate() <= 0.23
  VOICE target: lowhpcomment
else if $gameParty.summonMembers().contains($gameActors.actor(8))
  VOICE target: seekercomment
else
  VOICE target: summoned
end
</finish action>
<cgmvencyclopediahide>
<Hide in Field>

EDIT: I just realized I forgot to put the actor ID for Y. Fixed that.
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
763
Reaction score
416
First Language
English
Primarily Uses
RMMV
I can verify that doesn't work for me, either. Sorry, I don't know if I'm misreading something in the plugin, but I don't have another suggestion.

You know SumRndmDde does have contact information listed on his Web site, right? For how long this has taken, have you just e-mailed him to ask?
 
Last edited:

Essention

Essential
Member
Joined
Oct 6, 2020
Messages
24
Reaction score
28
First Language
English
Primarily Uses
RMMV
I can verify that doesn't work for me, either. Sorry, I don't know if I'm misreading something in the plugin, but I don't have another suggestion.

You know SumRndmDde does have contact information listed on his Web site, right? For how long this has taken, have you just e-mailed him to ask?
I haven't contacted and it's just of recent.
 

Latest Threads

Latest Posts

Latest Profile Posts

Why is parallexing so time-consuming? Ive been at it for 8hrs and i havent even finished the map yet :/
It seems MogHunter Twitter is back...
1618970067646.png
Feedback would be appreciated. To me it feels like the Dad does look a bit too normal and boring.
I think he's missing some features that make him more unique. Opinions?
recovering from surgery that covid caused me to have, im back trying to work on the newer engine on my game. We will see how this goes. I have no idea what to do about conversions
The wings got worse than I expected ... but for now it looks like this:
index.php

Forum statistics

Threads
110,589
Messages
1,054,476
Members
143,715
Latest member
natzma
Top