![]() |
Level editor problem
I've known about this for a while but it just now occured to me to post it. When you put down baddy npc's (the ones that are dressed as newbies) you can set its options for what it does. But when you click on can or cant hurt other npc's it doesnt matter they kill each other no matter wether the option is selected for not being able to hurt each other.
|
Re: Level editor problem
Quote:
|
Re: Re: Level editor problem
Quote:
Lighting effects. Hide Image. X Y position stuf of that nature the most complex script I've ever successfully written. Was one that changes your outfit colors and even it was buggy. Get the idea ;) I'm an LAT not an NAT even if it is easy. I suxorz |
Yeah, that's because players[this.i].id<0 no longer applies to NPCs: they have a modulo on playerid of something like 32767, so the only way to detect them really is either players[this.i].id>3000 (which would break at random or whenever the server got 3000 players on at once - unlikely, but that's how we got the Y2K bug), or if(strlen(#n(this.i))<1) if your NPCs do not have names set - since players cannot set their names to null, that should be safe.
|
Quote:
I mean making a massive army of dark warriors is rather pointless when they kill each other off then the last man standing comes after you. |
| All times are GMT +2. The time now is 10:56 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.