SeeNewPlayer - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: SeeNewPlayer (/Thread-SeeNewPlayer) Pages: 1 2 |
SeeNewPlayer - Draff - 03-22-2012 05:31 AM Hello, i have problem with the trigger SeeNewPlayer. I made dungeon with many npcs, but i have big differences between Z coordinates in a one room and the other room. So my npcs doesn't want to attack player even if they see him, but the trigger SeeNewPlayer probably doesn't start. I might that i can use some new triggers, but i scripting in a shard where play many players. Sometimes if I have the same problem, i can use event with i explore other npcs and tell to npc, Attack this! But I this dungeon is so many npcs, that I have lags with this event. If you have any experience with this, you will reply please. Thanks and sorry for my English, I am from a small country, The Czech Republic. RE: SeeNewPlayer - Valios - 03-22-2012 08:28 AM When the player go out of the line of sight and then returns near to the npc the trigger won't fire a second time because it stop being a new player seen by the npc unless you get out of that region and get back. What you can do is to change the npc brain to an hostile one, like monsters for example. They attack everytime a player approaches RE: SeeNewPlayer - Khaos - 03-22-2012 10:02 AM Actually.... if you clear the mobiles memory for seeing the player it should resume checking. Valios is right though, I would simply just use @seenewplayer; attack. Make sure the brain is hostile as well. If not; force through triggers hostility. RE: SeeNewPlayer - Shaklaban - 03-22-2012 02:10 PM (03-22-2012 05:31 AM)Draff Wrote: Hello, i have problem with the trigger SeeNewPlayer. I made dungeon with many npcs, but i have big differences between Z coordinates in a one room and the other room. So my npcs doesn't want to attack player even if they see him, but the trigger SeeNewPlayer probably doesn't start. I might that i can use some new triggers, but i scripting in a shard where play many players. Sometimes if I have the same problem, i can use event with i explore other npcs and tell to npc, Attack this! But I this dungeon is so many npcs, that I have lags with this event. If @npcseenewplayer doesn't fire for second time, you can use return 1 under @npcseenewplayer for the make npc forgot the player. Also as i know when advanced los enabled for npcs, they are able to see and attack to the players which are on the different z levels. RE: SeeNewPlayer - Khaos - 03-24-2012 07:43 AM Advanced LOS does do that I thought I worked out most of the kinks in it. Not sure. I know you can now attack oversea and other obstacles below or at the players z level. RE: SeeNewPlayer - Draff - 03-25-2012 02:56 AM I will try to use the Advanced Los.. I won't add new topic, but i have another question. I need to event for players like invul. I have friends of Monster and i don't wont to monsters attack them. If i try event with Return 1 in trigger @Attack, a npc will freeze. He won't move until I invis. And I can't use Invul on players RE: SeeNewPlayer - Khaos - 03-25-2012 05:05 AM Simple. Just add a tag to the player for that monster to check for. If that tag is seen clear the war_memory or just return 1. You seem to be having a lot of issues with return 1 by the way. What version of Sphere are you using? RE: SeeNewPlayer - Draff - 03-27-2012 09:56 PM (03-25-2012 05:05 AM)khaos Wrote: Simple. Just add a tag to the player for that monster to check for. If that tag is seen clear the war_memory or just return 1. I'm using 056b without Nightly. If i have return 1 in trigger @attack or @npcactfight then a npc will freeze. They are starting trigger again and again. So they don't move. If i have more players with me, a npc look at me, starts trigger @npcactfight (In this trigger I'm using Return 1), so a npc won't start another trigger and freeze. After while if i have luck he will see the other players with me and attacking them. I'm looking on the sphere wiki, but i can't find resolution. RE: SeeNewPlayer - sco - 03-28-2012 12:09 AM You should do that with on=@NPCLookAtChar: Code: on=@NPCLookAtChar Ofc you need to build a function "is_friend_of" checking if the player your mob looks at is a friend. The Mob won't look at them then and never attack. RE: SeeNewPlayer - Draff - 03-28-2012 04:55 AM (03-28-2012 12:09 AM)sco Wrote: You should do that with on=@NPCLookAtChar: build a function is easy.. thanks i will try it. But i need to a npc will move. According to sphere wiki, if i return 1 in trigger @npclookatchar A npc will freeze, because he can't look at another char. http://wiki.sphere.torfo.org/index.php/@NPCLookAtChar |