The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: lost on January 11, 2008, 07:35:24 PM

Title: How to find what ally just went in a battle
Post by: lost on January 11, 2008, 07:35:24 PM
Is there any way to get a varible for what ally just went in a battle or a number for the ally who currently has his or her turn?

Hero 4 is in slot 1
Hero 2 is in slot 2
Hero 1 is in slot 3
Hero 3 is in slot 4

It is the turn of Hero 1

Variable = 3

Is there any way to do that?
Title: Re: How to find what ally just went in a battle
Post by: HolyQuebec on January 12, 2008, 12:46:17 AM
There is but it's pretty pissy to do.
the only way i'm thinking off, is creating 359703570357053702470436 pages
with if hero has taken 0 x +1 turn then variable set 1
0 x + 2 then variable set 2
0 x + 3 then variable set 3
0 x + 4 then variable set 4
0 x + 5 then variable set 5

do this for every characters. so  make the variable +4 for every characters. example

1st turn: hero 1 = 0 x + 1
2nd turn hero 1 = 0 x + 5

1st turn hero 2 = 0 x + 2
2nd turn hero 2 = 0 x + 6

1st turn hero 2 = 0 x + 3
2nd turn hero 2 = 0 x + 7

1st turn hero 2 = 0 x + 4
2nd turn hero 2 = 0 x + 8

etc etc etc. LOT of pages indeed. I don't think there's another way, sorry <.<



Title: Re: How to find what ally just went in a battle
Post by: Brady on January 12, 2008, 02:47:02 AM
I woudl try to offer a solution but i don't even understand the question still  :(
Title: Re: How to find what ally just went in a battle
Post by: Falcon on January 12, 2008, 03:17:22 AM
True, that, English por favor.
Title: Re: How to find what ally just went in a battle
Post by: Savarast on January 12, 2008, 04:34:37 AM
From what I understand, he would like a method from which he can determine which ally is currently in their turn or which ally has just completed their turn by using variables...

If that makes it any clearer.
Title: Re: How to find what ally just went in a battle
Post by: Brady on January 12, 2008, 05:22:14 AM
That seems really....wow..that seems hard....
..Why do you want to know how to do this? (Just out of curiosity.  It seems like a really specific thing and i couldn't think of why you would need it is all)
Title: Re: How to find what ally just went in a battle
Post by: HolyQuebec on January 12, 2008, 07:41:10 AM
anyone has read my post or what? LOL :'(
Title: Re: How to find what ally just went in a battle
Post by: Brady on January 12, 2008, 01:36:55 PM
We have, but events with that many pages and coding, in fact, simply just numbers as big as that scare people into a near hospitalisation-worthy trauma, so we just try to forget about it as much as we can.  *cries*
Title: Re: How to find what ally just went in a battle
Post by: Falcon on January 12, 2008, 03:19:59 PM
I can probably find the code for this in about 5 minutes, but this sounds like a scripting problem, and I really don't know why you'd need such a variable.
Title: Re: How to find what ally just went in a battle
Post by: lost on January 12, 2008, 05:38:33 PM
Event based combo systems.

3rd person in a party uses a combo.
In order for the combo to work via the event system, you need to know which person went.

You could always have it the 1st person in the party does the move when the 3rd person is the one that used the combo, but what happens if the 1st person in the party is dead?

Gotta have that variable. I have been searching through the scripting battle system.
Title: Re: How to find what ally just went in a battle
Post by: HolyQuebec on January 12, 2008, 08:27:51 PM
my ''code'' could always work since if the person's dead, it wont be his/her turn.