NPC scripting - Example with quest

Published October 05, 2019
Advertisement
npc scripting 2.mp4 Here's a short clip of my WIP on the NPC scripting department.
On this NPC's script, highlighted bold the events and actions showcased.
  • upon accepting quest, send chat+clip to player "Fight me!"
  • on combat, send chat+clip "For Honor"
  • at 35%, cast self heal and "How bold of you"
  • at 1%, stop the fight, reset, and grant quest completion
This quest is actually a SLAY kind of quest, and what I did was at 1% (because the NPC can't die in this specific scenario, it's effectively set as immortal), he just resets, and grants the death to the quest system. A bit hacky, and I might need to rethink this later on, to maybe be a specific quest objective type by itself, or some other mechanism that prevents that specific player from being able to kill the NPC, while allowing other factions to do so.
There are bugs as well, like the resetting itself, the rotation does not reset properly, but that will be quick to fix tomorrow. ?
What are your thoughts?
 
Previous Entry Unity MMORPG devlog #6
Next Entry Factions added
1 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement