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
  #16  
Old 01-10-2002, 11:21 PM
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 Faheria_GP2
if (j=4) {
iam***(6);
}

in c++ would always run, because the "=" sets j to 4 and returns true
Right, but not for the right reasons, 'j=4' returns whatever was assigned, so it returns a '4', not a 'TRUE', but I supposed it doesn't really matter, since any nonzero is considered true in a condition
__________________
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
  #17  
Old 01-11-2002, 03:23 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
you really only use while when for isnt a good choice. otherwise it really has no purpose.
__________________

subliminal message: 1+1=3
Reply With Quote
  #18  
Old 01-11-2002, 05:59 AM
BlKnight BlKnight is offline
Not in Use
Join Date: Mar 2001
Location: N/A
Posts: 1,527
BlKnight is on a distinguished road
Quote:
Originally posted by Loriel
For checking stuff, just always use ==... and for setting stuff, just use =...

For that not-so-much working while-loop, it should be in an event...
Thats what I said, genius, if you read my last post. It needs something to start the loop again...but this should work like C++...I will post on future improvements
__________________
This account is no longer is use.
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 11:39 PM.


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