![]() |
? and :
My friend had sent me a script that was like this:
NPC Code: Could someone please explain what each part of that does like the ? and the 99: and how to use it? I think it has something to do with rounding numbers down but I couldn't figure out how it worked, any help would be greatly appreciated |
Quote:
|
ok
Incase this wasnt answered on aim, or if anyone else is still confused after reading the other post...
NPC Code: the part before the ? is the conditional statement playerdarts>=70, so the NPC checks to see if the player has 70 or more arrows. If the player does, the NPC makes the dart count to 99, if not the dart count increases by 30. another example could be this: You want to say, if the player has 3 or less hearts, the NPC should make their current heart count 5 (assuming that is within their fullheart length), and if they have more than 3, make it so they have 1 more heart. NPC Code: so.... 1 : what you want to change 2 : what you are checking 3 : what you are checking is true, the variable gets that value (ie 1<2 would be true) 4 : what you are checking is false, the variable gets that value (ie 1>2 would be false) |
| All times are GMT +2. The time now is 12:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.