- Joined
- Jun 25, 2015
- Messages
- 1
- Reaction score
- 0
- First Language
- english
- Primarily Uses
HEY!! im glad you click on this topic, cause for real, that was the best way i could describe the idea that im trying to pull off.
Okay, so this is what im trying to make:
In my game i want to give the impression that my party isnt the only group in the world that is actually trying to go around fighting and killing monsters.
I'm trying to make a script that will have my NPC characters:
roam around the world map/ region map in a random fashion (OR)
roam around a certain area of the map
when the NPC 'see's or 'detects' an enemy MOB, he will move towards it
when the NPC touches the MOB, it is killed
(i will try to add more interesting stuff to that later, like damage, or status effects to the NPC, but for now, i can't even get this simple idea to work for me)
SO!
I've tried a few things already, but DAMN im such a NOOB... i know that there is code for the 'approach' function for bad guys, but it only 'approaches' the main character. I was thinking of using a script to label the different MOBS on the map as 'prey' and the NPCs as 'hunter's. Then use the 'approach' script, but have the hunters chase the prey. then on touch, have the MOB erased.
From there i can work out the rest (hahahaha.... no i can't, i'll come back and ask for more help, who am i kidding)
any help would be greatly appreciated, thank you so much guys!!!
Okay, so this is what im trying to make:
In my game i want to give the impression that my party isnt the only group in the world that is actually trying to go around fighting and killing monsters.
I'm trying to make a script that will have my NPC characters:
roam around the world map/ region map in a random fashion (OR)
roam around a certain area of the map
when the NPC 'see's or 'detects' an enemy MOB, he will move towards it
when the NPC touches the MOB, it is killed
(i will try to add more interesting stuff to that later, like damage, or status effects to the NPC, but for now, i can't even get this simple idea to work for me)
SO!
I've tried a few things already, but DAMN im such a NOOB... i know that there is code for the 'approach' function for bad guys, but it only 'approaches' the main character. I was thinking of using a script to label the different MOBS on the map as 'prey' and the NPCs as 'hunter's. Then use the 'approach' script, but have the hunters chase the prey. then on touch, have the MOB erased.
From there i can work out the rest (hahahaha.... no i can't, i'll come back and ask for more help, who am i kidding)
any help would be greatly appreciated, thank you so much guys!!!



