Item Variables and Changing NPC Dialogue

Hey there. I tried searching around a bit on Google and on this forum and couldn't find answers to these questions, so I figured I'd post a thread. I'm new and working on my first RPG Maker game, using VX Ace. 

I wanted to make an RPG where death comes with a cost. The idea is that every time the player heals himself and/or dies, the energy has to come from somewhere-- in this case, each time the player heals himself with a specific item [Mysterious Amulet] or dies (I added a script that makes the player respawn on death), an NPC in the village will die. 

So, I have two questions related to this:

1. How can I track the Amulet usage?

I was thinking I could add a variable that is incremented each time the player uses the amulet, whether intentionally in the inventory, or automatically when they die. At each new interval, a new NPC would be removed. (So, for example, if iAmuletUsage == 1, it turns on a switch that one of the village NPCs needed to appear, so that NPC is no longer around). I'm not sure how to have a variable that increments every time an item is used, though.

2. How can I change NPC dialogue?

I want the NPCs to react differently / say different things every time a new NPC goes missing, thanks to the player's death. But since NPCs are events... is there an easy way to do this?

Like I said, I'm new, and this is my first project, so if there are better ways to do the things I described, please let me know.

Thanks in advance!
1) You can opt to use common events or the damage formula... though CE might be easier for you


2) You can use pages or conditional branches


Lastly, I suggest you read the tutorials first... Try to search for Andar's tutorial
Thanks for the quick response! I've checked out a few tutorials, including the 'official' one and Kelsper's tutorial, which was very helpful, but I'll look for Andar's now. 

I'll look into the pages/branches, but as for the common events, I'm not sure how I'd make it to trigger on item use, as common events seem to be only triggerable by Condition Switches. I suppose I could make a Condition Switch that is turned on each time the item is used, though I'm not sure where to do that. ): 
If you check the effects section of an item in the database, you'll see common event as an option on the other page. This will call that common event when the item is used.
If you have a damage formula on the amulet, you don't need a common event. Just add this at the start of the damage formula (where id is the variable id you want to increment, without any leading zeros):

$game_variables[id] += 1;and after the ; have whatever was in your damage formula. If there's NO damage formula, just put 0 after it.
Then on your village NPCs, have a different page for each value the variable could be. For the ones you want to die at each value, just have a page with no graphic, everything else as default, and the variable with the value as the condition. Don't put any more pages for that NPC for higher values. And for the ones who you want to say something different depending on how many have died, just add the text to the appropriate page (again, multiple pages with the variable as the condition).
Thank you so much! I'll give all that a try. Hopefully I don't run into any more issues with it, but if I do, I'll ask for help once more. 

Thanks, everyone. 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/item-variables-and-changing-npc-dialogue.20774/