New account registration is temporarily disabled.

SKILLS WITH DIFFERENT EFFECTS IN BATTLE/OUT BATTLE (RMXP)

Posts

Pages: 1
I'd like to see if anyone's got any ideas how I could do this. The "skills" in my game are allies that you can call in battle to do a special attack, but I'd also like it so that you can use the same skill on the map screen and be able to start a dialogue with that ally (so you can remove them from your group or even attack them). It's easy enough to set up common events but I'm not sure how I can differentiate effects in and out of battle. Any ideas? Thanks!
You can make a conditional branch, choose the script condition and write $game_temp.in_battle.
For the in battle effect, you use the main branch, and for the field effect, the else branch.
If you use touch encounters, it's as easy as just turning on and off a switch that identifies you as being in combat. If you use random encounters, it's a bit trickier. I know a crude method though.

At the start of each battle, call up a common event turns on the switch. Then on every map with random encounters, have an event that triggers if the switch is on and which turns it off again. A script that let's you call common events at start and end of battles would be better though.

Edit: Use yuhikaru's method.
Thanks! I'll try your suggestion yuhikaru. I thought of your way too Crystal (my game doesn't have random encounters) but I thought there must be a simpler way.
Pages: 1