View Single Post
  #11  
Old 07-01-2002, 10:42 PM
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 adam
Yes.... Once you learn arrays...

You could do that same script in 1/6th the number of lines....

or less.....

Sorry my bad.

For loops and thinking.
would let you do that in less lines.

only becouse there is a build in command for some old arrays.



Also you need to use " == " instead of " = " in an if statement.

NPC Code:

//-------------wrong thing----------//
if (this.value = this.othervalue) {
//do this;
}


//------------correct thing-----------//
if (this.value == this.othervalue){
//dothis;
}




Keep at it. You'll get it.
__________________
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