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?
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 <.<
I woudl try to offer a solution but i don't even understand the question still :(
True, that, English por favor.
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.
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)
anyone has read my post or what? LOL :'(
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*
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.
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.
my ''code'' could always work since if the person's dead, it wont be his/her turn.