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 08-30-2011, 04:35 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
aaah, i got it. but HOW would you do a everything "but" if there is no =
You can't put != because it's set up like
(player.ani.name.starts("servername_sword_"))

Last question, what is the importance of adding two equal signs when one works?
Reply With Quote
  #2  
Old 08-30-2011, 04:41 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by blackbeltben View Post
aaah, i got it. but HOW would you do a everything "but" if there is no =
You can't put != because it's set up like
(player.ani.name.starts("servername_sword_"))

Last question, what is the importance of adding two equal signs when one works?
You can put the exclamation mark in front of it all, like this:
PHP Code:
if (!player.ani.name.starts("servername_sword_")) 
Also, you need to use two equal signs because a single one doesn't work. Using only a single one you are assigning a value to a variable, or at least trying to do so. If you want to compare stuff, use double equal signs.
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 01:12 AM.


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