Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-06-2001, 08:25 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
variables, reserved

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


Thank You
Reply With Quote
  #2  
Old 12-06-2001, 09:45 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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
Reply With Quote
  #3  
Old 12-06-2001, 10:15 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
i use this.dots or this.points for showing things like that. =\
__________________

subliminal message: 1+1=3
Reply With Quote
  #4  
Old 12-06-2001, 10:52 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
i use things like

this.starx and this.stary
Reply With Quote
  #5  
Old 12-06-2001, 11:53 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #6  
Old 12-06-2001, 12:10 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Actually, I'll correct myself.

Nothing with a this., client. or server. prefix is reserved. (players[i]. is a prefix)
Reply With Quote
  #7  
Old 12-06-2001, 12:32 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
nope.

go woth kyle...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #8  
Old 12-07-2001, 03:20 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
what about abs?
Reply With Quote
  #9  
Old 12-07-2001, 03:53 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
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.
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #10  
Old 12-07-2001, 07:42 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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.
Reply With Quote
  #11  
Old 12-07-2001, 11:18 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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...
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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