Mountain_Wolf Posted January 22, 2023 Share Posted January 22, 2023 No matter what order i put it in or whatever way i try and use it it just doesn't work so if i could please get some help, i bet its me but just need a tiny guide. Quote Link to comment Share on other sites More sharing options...
Chris Posted January 22, 2023 Share Posted January 22, 2023 Here is some pseudo logic boolean shouldLoot if shouldLoot // loot logic else if interacting npc not null if interacting npc healthpercent == 0 loot position = npc position shouldLoot= true; else //currently fighting else // fight new target Quote Link to comment Share on other sites More sharing options...
Mountain_Wolf Posted January 22, 2023 Author Share Posted January 22, 2023 I will try thank you :). 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted January 22, 2023 Share Posted January 22, 2023 nvm just noticed i posted in script factory section but the logic should still apply. 1 Quote Link to comment Share on other sites More sharing options...
FushigiBot Posted January 22, 2023 Share Posted January 22, 2023 Create a loot area. Use these checks to turn on a boolean like in the example Chris wrote above: if item exists over X gp in area (Turn boolean on) if item does not exist over X gp in area or if player isnt in are (turn boolean off) when the boolean for "should loot" checks true, use the following action loot all items above x gp in area Quote Link to comment Share on other sites More sharing options...