Chaos Project

RPG Maker => Event Systems => Topic started by: nathmatt on November 21, 2008, 05:14:10 pm

Title: (resolved) event help
Post by: nathmatt on November 21, 2008, 05:14:10 pm
ok im trying to compare the char x & y & events x & y throught variables but im getting a syntax error heres what i have

Spoiler: ShowHide
(http://i184.photobucket.com/albums/x287/nathmatt/NewBitmapImage4.jpg)
Title: Re: enent help
Post by: Aqua on November 21, 2008, 05:48:56 pm
Shouldn't those Yen signs be $game_variables?

And make sure that the end of each line is a syntax that will read for the script to go on to the next line which would be = and -

$game_variables[10] =
Math.hypot(($game_variables[1] -
$game_variables[9].abs)
($game_variables[2] -
$game_variables[8].abs))
Title: Re: enent help
Post by: Starrodkirby86 on November 21, 2008, 06:41:04 pm
Quote from: Aqua on November 21, 2008, 05:48:56 pm
Shouldn't those Yen signs be $game_variables?
nathmatt's probably using Postality Knights or a translation of RMXP that's not Enterbrain's official English version. \ turns into the Yen Symbol if I'm not mistaken...

I can't really help on this matter because of the scripting, so good luck. Aqua, I hope you're competent enough to do this. Oh of course you are. :x
Title: Re: event help
Post by: nathmatt on November 22, 2008, 11:16:15 am
i tried that still getting a syntax error heres my demo


http://www.megaupload.com/?d=A2Q9CSGZ (http://www.megaupload.com/?d=A2Q9CSGZ)
Title: Re: event help
Post by: nathmatt on November 29, 2008, 04:22:13 pm
credit to whoever helps me fix it in my event system
Title: Re: event help
Post by: Fantasist on November 29, 2008, 04:27:04 pm
I think you might find something about event and player coordinates here (http://forum.chaos-project.com/index.php?topic=79.0).
Title: Re: event help
Post by: shdwlink1993 on December 10, 2008, 09:34:46 am
The solution is that the event calls need a comma. They should look something like this:

$game_variables[10] =
Math.hypot(($game_variables[1] -
$game_variables[9].abs),
($game_variables[2] -
$game_variables[8].abs))
Title: Re: event help
Post by: nathmatt on January 15, 2009, 06:02:42 pm
noticed i didnt add resolved