Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   variables, reserved (https://forums.graalonline.com/forums/showthread.php?t=18398)

royce 12-06-2001 08:25 AM

variables, reserved
 
ok i am wondering if this.stars is a reserved variable?...also could ppl please list the reserved variables?


Thank You

kyle0654 12-06-2001 09:45 AM

Re: variables, reserved
 
Quote:

Originally posted by royce
ok i am wondering if this.stars is a reserved variable?...also could ppl please list the reserved variables?


Thank You

nothing at all with a prefix is reserved...this.stars is probably just used highly in star scripts.

check out commands.rtf, it has 'em

Falcor 12-06-2001 10:15 AM

i use this.dots or this.points for showing things like that. =\

Faheria_GP2 12-06-2001 10:52 AM

i use things like

this.starx and this.stary

adam 12-06-2001 11:53 AM

I would use.

stars[this.i]
stars[this.i+1]
stars[this.i+2]
stars[this.i+3]

more or less vars depending on how many stars. and what they are supposed to do.

kyle0654 12-06-2001 12:10 PM

Actually, I'll correct myself.

Nothing with a this., client. or server. prefix is reserved. (players[i]. is a prefix)

Saga2001 12-06-2001 12:32 PM

nope.
 
go woth kyle...

royce 12-07-2001 03:20 AM

what about abs?

Xaviar 12-07-2001 03:53 AM

Quote:

Originally posted by royce
what about abs?
this.abs should work fine as a variable name, but abs is a command name, and therefore can't be used as a variable.

kyle0654 12-07-2001 07:42 AM

Quote:

Originally posted by Xaviar


this.abs should work fine as a variable name, but abs is a command name, and therefore can't be used as a variable.

ACTUALLY, it CAN be used as a variable.

Check out the old boomerang script, it uses abs as a variable, and it works fine. It'll trigger an error in the editor, but abs is actually abs(), a function, so it's different than abs, a variable you could use.

adam 12-07-2001 11:18 AM

Quote:

Originally posted by kyle0654

ACTUALLY, it CAN be used as a variable.

Check out the old boomerang script, it uses abs as a variable, and it works fine. It'll trigger an error in the editor, but abs is actually abs(), a function, so it's different than abs, a variable you could use.


=/ I always fixed the error...


All times are GMT +2. The time now is 11:17 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.