Jump to content
Sign in to follow this  
Sievnn

Conditional branch, to check if I am in battle

Recommended Posts

How do I make a common event only activate if I am in battle?

 

for example I want to use an Item,

in battle it should activated common event 1

BUT outside battle it can't activate common event 1.

 

So I want to let the game check if I am in battle or not using conditional branch, how do I do that?

Thanks in advance.

Edited by Sievnn

Share this post


Link to post
Share on other sites

Script condition

$game_party.in_battle?
EDIT:

 

Seems like there is no question mark

$game_party.in_battle
Edited by Tsukihime
  • Like 1

Share this post


Link to post
Share on other sites

 

Script condition

$game_party.in_battle?

Thanks , their is also another way which is to make sure "Enemy 1" Appeared.

But yours is so much better because it activated any where in battle, even if "Enemy 1" got a death state.

 

Thanks again.

 

EDIT : It gives me undefined method error when I activate an item outside battle (with the conditional branch with the script you posted) :-/

Edited by Sievnn

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted