Chaos Project

RPG Maker => Event Systems => Event System Troubleshooting => Topic started by: Alton Wyte on February 14, 2010, 04:25:26 pm

Title: Makin' a bank
Post by: Alton Wyte on February 14, 2010, 04:25:26 pm
I know there's already systems for this, but I decided I wanted to do it completely on my own, so I haven't looked at a system, and I'm not going to say to much, but how would I store a player's name as a variable, for bank account names?
Title: Re: Makin' a bank
Post by: Hellfire Dragon on February 14, 2010, 05:39:37 pm
Couldn't you just use \n[ACTOR_ID]?
Title: Re: Makin' a bank
Post by: Alton Wyte on February 14, 2010, 09:29:38 pm
No, I'm needing to check if two names match, actor two and three, specifically.
Title: Re: Makin' a bank
Post by: G_G on February 14, 2010, 09:39:34 pm
use these in a script call.
$game_variables[id here] = $game_actors[id here].name
$game_variables[id here] = $game_actors[id here].name


In your case
$game_variables[1] = $game_actors[2].name
$game_variables[2] = $game_actors[3].name


Then in a Conditional Branch check to see if variables 1 and 2 are equal
Title: Re: Makin' a bank
Post by: Alton Wyte on February 16, 2010, 07:33:37 pm
I thought that was it, but I get the NoMethodError whenever I try it.
Title: Re: Makin' a bank
Post by: Event Master on August 27, 2010, 03:04:02 pm
Make sure that it's on one line. Most people have a problem like this whenever they have something =
then on the next line they start what they want to compare.
Title: Re: Makin' a bank
Post by: Blizzard on August 27, 2010, 04:08:50 pm
I know you're trying to help people and stuff, but gravedigging old topics isn't going to cut it, especially if people aren't active anymore.