IEuphe 116 Posted November 14, 2020 Just to be clear i'm not very good with scripting and only know the basics which is why i need help. This is what i'm trying to do - trigger zone spawns entity from template, conversation happens, at the end of the conversation an item from your inventory is taken from you and replaced with a better one then the entity disappears. what i'm stuck with - i can't seem to find a way to remove the specific item (this item is already in your inventory from the start, in the player role thing) and i can't get the entity to disappear. i've tried despawning it and i've tried to teleport it but nothing i do seems to work. if anyone can help me with this i'd really appreciate it as i just don't know what to do. Share this post Link to post Share on other sites
Shadow72 187 Posted November 14, 2020 Setting the stack size to -1 should do it. Share this post Link to post Share on other sites
IEuphe 116 Posted November 14, 2020 ok but how do I select the item in the characters inventory ? Share this post Link to post Share on other sites
Mello1223 591 Posted November 14, 2020 1 and 2 is functional 100%, maybe also 3, but 3 i don't tried ... 1 Share this post Link to post Share on other sites
Mello1223 591 Posted November 14, 2020 for none entity type click and chose what type entity you want remove from player inventory or equipment.. character set player... Share this post Link to post Share on other sites
IEuphe 116 Posted November 15, 2020 thank you mello, this fixed my item problem but the npc entity still will not despawn. do you have any other suggestions? Share this post Link to post Share on other sites
Cernu 87 Posted November 15, 2020 you are not refering the proper entity to despawn. Using the dialogue, it has a reference to the questionner, whichis usually the NPC. It should be easy to despawn the "questioner" variable. Share this post Link to post Share on other sites
IEuphe 116 Posted November 16, 2020 (edited) i already tried to despawn the entity by referencing it but it wouldn't depsawn. that's why i asked for help. don't know if it's a bug or if i did something wrong. Edited November 16, 2020 by IEuphe Share this post Link to post Share on other sites
Mello1223 591 Posted November 16, 2020 21 minutes ago, IEuphe said: už som sa pokúsil despawovať entitu odkazom na ňu, ale to by sa nevyskytlo. preto som požiadal o pomoc. neviem, či je to chyba, alebo či som urobil niečo zle. can you show me script,what you use for despawn NPC? Share this post Link to post Share on other sites
Cernu 87 Posted November 16, 2020 many problems come from mixing entities, entity type, entity templates. Another issue I had was when trying to despawn a game object, because in this case you should use delete. Share this post Link to post Share on other sites
RedEagle_P1. 905 Posted December 7, 2020 If you need hands-on help we have teachers here https://discord.gg/Ju82y7g Share this post Link to post Share on other sites
empeorgame3 16 Posted December 7, 2020 I need help i am banned because of a conspirator and a imposter in your community . Share this post Link to post Share on other sites