Hello I'm looking for help to get 2 features work in my game:
1.
Is there a way to create a spell that can 'Instant Kill' certain enemy types.
For example a spell that kills all undead enemies?
--
2.
How can I make certain Quests available only after specific items have been sold to merchants?
Thank you very much for any help.
Hi there,
The easiest solution would probably be to write plugins for those features, but apart from that you could also implement them like this:
1.
I'm assuming you want this kind of effect for different types or states, so you can't just give your non-undead enemies a "State Rate: Death 0%" trait to make an undead-killing skill uneffective.
To make a battler type vulnerable to a state only if the battler has a specific trait you can add a layer of temporary help states:
- Create a new state with no icon or text (let's call it "Undead Death Blocker") and give it the "State Rate: Death 0%" trait.
- Make your undead enemies immune to that new state
- Your undead-killing spell can now: "Add State: Undead Death Blocker 1000%" "Add State: Death 100%" "Remove State: Undead Death Blocker"
This should make sure any non-undead enemy can't be affected by death during the Death Blocker window. The only problem is that enemies with at least 901 more LUK than your attacker can still resist the Death Blocker state, so I just hope this doesn't apply to your project. If it does you probably still need a plugin (either for the feature or to change the LUK effect calculation).
Edit: Too slow. Using a plugin should be an easier solution anyways. =)
2.
Assuming your merchants don't sell said item themselves you can always compare how many items your party had before and after the shop menu:
- Save the number of items in a variable
- Open the shop menu
- Subtract the number of items from the variable above
- Add the result to another variable that stores your total sales
Depending on the number of merchants I'd highly recommend using 2 common events for the parts before and after the shop processing in case you want to extend or change it.
If you prefer a plugin for this feature I'd have to see what I can do later today.
Thank you very much for you answers.