Author Topic: (resolved) event help  (Read 2272 times)

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
(resolved) event help
« on: November 22, 2008, 12:14:10 AM »
ok im trying to compare the char x & y & events x & y throught variables but im getting a syntax error heres what i have

(click to show/hide)
« Last Edit: January 16, 2009, 01:08:28 AM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: enent help
« Reply #1 on: November 22, 2008, 12:48:56 AM »
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 -

Code: [Select]
$game_variables[10] =
Math.hypot(($game_variables[1] -
$game_variables[9].abs)
($game_variables[2] -
$game_variables[8].abs))
« Last Edit: November 22, 2008, 01:50:54 AM by Aqua »

Offline Starrodkirby86

  • Kirby de Varita Estelar
  • Guardian of Chaos
  • ********
  • Posts: 3281
  • LV: 194
  • Gender: Male
  • ~!
    • View Profile
    • The Archive of Starrodkirby86
Re: enent help
« Reply #2 on: November 22, 2008, 01:41:04 AM »
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

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).



Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: event help
« Reply #3 on: November 22, 2008, 06:16:15 PM »
i tried that still getting a syntax error heres my demo


http://www.megaupload.com/?d=A2Q9CSGZ
« Last Edit: November 22, 2008, 06:21:35 PM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: event help
« Reply #4 on: November 29, 2008, 11:22:13 PM »
credit to whoever helps me fix it in my event system
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2223
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: event help
« Reply #5 on: November 29, 2008, 11:27:04 PM »
I think you might find something about event and player coordinates here.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline shdwlink1993

  • Ethereal Devastator
  • ****
  • Posts: 435
  • LV: 63
  • Gender: Male
    • View Profile
    • YouTube Profile
Re: event help
« Reply #6 on: December 10, 2008, 04:34:46 PM »
The solution is that the event calls need a comma. They should look something like this:

Code: [Select]
$game_variables[10] =
Math.hypot(($game_variables[1] -
$game_variables[9].abs),
($game_variables[2] -
$game_variables[8].abs))
Stuff I've made:

(click to show/hide)

"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: event help
« Reply #7 on: January 16, 2009, 01:02:42 AM »
noticed i didnt add resolved
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)