Im trying to create a change party system through events. The system includes 3 characters, each with their own abilities(One can move heavier rocks, one can read some books, ect). The main idea of this system is to have the 2 other characters walking behind one, similar to a cartepillar system. When you press Z, you will change to character behind you( If the characters stands in one line, you will change to the one behind you, and the old character will go to the back of the line). If you press Z again, you will change to the next character, and so on.
However, I don't get it to work. When I press the Z button, it's switches to the second character, but instantly switches back the first character again. Sometimes, it switches to the third character instead of the second.
I don't know if it's the Switches Im using that bugging out eachother. I tried with Variables, but it didn't work either. So I wonder how I shoud event this, because Im stuck.
Sorry if it sounds confusing, but it's hard to explain with my bad english.
http://forum.chaos-project.com/index.php/topic,164.0.html
This might be what you're looking for, then.
Well, it solves the character switch, but not the whole problem.
You have 3 characters in your party, Hera, Daniel and Sara. When you swich over to Daniel, you can move rocks. When you have switched over to Hera or Sara, you can't move rocks. How do I solve that?
Quote from: The Shadow on June 05, 2010, 05:20:13 PM
Well, it solves the character switch, but not the whole problem.
You have 3 characters in your party, Hera, Daniel and Sara. When you swich over to Daniel, you can move rocks. When you have switched over to Hera or Sara, you can't move rocks. How do I solve that?
Not quite sure, but I'm sure it can be handled through a variable (via a script call, of course).
I don't have a lot of experience with party-based environments, as my games are usually ABS games with only one person in the party at all times.
Just make a check to see if the lead character is the guy you want (in this case, Daniel). Make a simple script call like this:
$game_variables[Whatever variable ID] =
$game_party.actors.empty? ? 0 :
$game_party.actors[0].id
So that if Daniel's Actor ID is 3, then the variable that you set will also be 3. Then you can just check that with conditional branches and what not.
Quote from: cozziekuns on June 05, 2010, 05:50:16 PM
Just make a check to see if the lead character is the guy you want (in this case, Daniel). Make a simple script call like this:
$game_variables[Whatever variable ID] =
$game_party.actors.empty? ? 0 :
$game_party.actors[0].id
So that if Daniel's Actor ID is 3, then the variable that you set will also be 3. Then you can just check that with conditional branches and what not.
Is the "?" supposed to be something else?
Nope. The Whatever variable ID is, but you probably already knew that.
Yes I did.
But it still dosen't work. All 3 can still move the rock.
Hmm.. That's weird. Can I see your events?
This is the event for the rock:
[spoiler](https://rmrk.net/proxy.php?request=http%3A%2F%2Fi94.photobucket.com%2Falbums%2Fl104%2FDennis88_2006%2Fertyu.png&hash=d1827bfa7c5903e688b1c1047ea263a53486cf76)[/spoiler]
I have another event with a Call Common Event for the script.
The problem is that you have the variable set to equal itself... and Variable X is always equal to variable X.
It is one of the algebraic properties!
Yeah, Mikhail's right. What's Daniel's Actor ID? For example, if his Actor ID is 2, change it to:
Conditional Branch: Variable [0002] == 2
Blah Blah Blah
Else
I'm too weak to move this one
Branch End
Maybe I didn't explain it too well. If that's the case, I'm sorry.
That's okay :). It works perfectly now. Thanks for the help.