Posted: Fri Dec 14, 2012 05:06
From the YouTube video http://m.youtube.com/watch?v=6xwjm4u8R3I
The official Minetest discussion board
https://forum.minetest.net/
By the way I got it to spawn now I just need to tidy it up and fix the spawn blocks themselves really.jordan4ibanez wrote:That's probably not going to work at all, ever lol.jojoa1997 wrote:I downloaded this mod, edited it to spawn npcs.jordan4ibanez wrote: Honestly, i have no idea what you just said
Change all the vombie(minetest zombie) names to npc names.
Here is the vombie link. http://minetest.net/forum/viewtopic.php?id=629
This might help. http://minetest.net/forum/viewtopic.php?id=557jordan4ibanez wrote:Go aheadChinchow wrote:Do you mind if I attempt a very simple village mod that uses parts of this code?
Code: Select all
21:49:21: ERROR[main]: ServerError: LuaError: error running function 'on_step': ..../games/minetest_36c17b0/mods/addn_mods/npc/init.lua:173: attempt to call method 'set_animation' (a nil value)
Sure.4aiman wrote:Minetest 0.4.3:Do I need 0.4.4?Code: Select all
21:49:21: ERROR[main]: ServerError: LuaError: error running function 'on_step': ..../games/minetest_36c17b0/mods/addn_mods/npc/init.lua:173: attempt to call method 'set_animation' (a nil value)
Code: Select all
+---------------+------------------------+--------------------------------+-----------------------------+
| | Name, HP, Speed, | | |
| ID | Weapon, Mesh, Textures | Type | profession |
+---------------+------------------------+--------------------------------+-----------------------------+
| IDK for | Obvious for a mob/npc | 0 - neutral mob | if type=0 or type=1 then: |
| what purpose, | properties, maybe some | (never becomes hostile, | 0 - animal (domestic/wild) |
| it's just a | privileges, like | but runs away if hurt) | 1..n - npc/villager |
| habbit ;) | flying (but the last | 1 - passive mob #1 | |
| | one is too early to | (becomes hostile, if hurt) | IDK, what "professions" are |
| | think about). | 2 - passive mob #2 | needed, but it'll be good |
| | | (hostile at night, | to have a Smith and a |
| | | otherwise passive; | merchant. Maybe a doctor |
| | | becomes hostile, if hurt) | would be nice. |
| | | 3 - regular mob (hostile 24/7) | |
+---------------+------------------------+--------------------------------+-----------------------------+
I mean could you make a command Vanessa wont have it on here server unless it is always peaceful even if you hit the npc. Also could the command need the server priv. I also would want to have them sometimes hostile in single player but other rimes peaceful.4aiman wrote:jojoa1997,
They're neutral at the day time while you didn't hurt them. If you're OK with that, you could try to remove some lines from init.lua which makes them hostile at the night time.
A little offtopic... or not?
Anyway, I've noticed (yeah, I've read changelog ) that players are 3d now and they share the same model with NPCs, right?
So, PilzAdam, is there a way to add selected item mesh to the "hands" of npc/player? (Maybe by using added in 0.4.4 ability to "link" the entities?) That way anyone would know whether another player/mob is preparing an attack with his/her sword or just holding some block.
I'm saying "mobs", because a hostile 24/7 NPC is a mob to me
Moreover, is it possible to make mobs "draw their weapons" when they get hurt by someone?
And even more: could you possibly add some kind of config file, so mod would read it and add various NPC?
That file could be smth like this:Using such a file could help others to add their own mobs/npc.Code: Select all
+---------------+------------------------+--------------------------------+-----------------------------+ | | Name, HP, Speed, | | | | ID | Weapon, Mesh, Textures | Type | profession | +---------------+------------------------+--------------------------------+-----------------------------+ | IDK for | Obvious for a mob/npc | 0 - neutral mob | if type=0 or type=1 then: | | what purpose, | properties, maybe some | (never becomes hostile, | 0 - animal (domestic/wild) | | it's just a | privileges, like | but runs away if hurt) | 1..n - npc/villager | | habbit ;) | flying (but the last | 1 - passive mob #1 | | | | one is too early to | (becomes hostile, if hurt) | IDK, what "professions" are | | | think about). | 2 - passive mob #2 | needed, but it'll be good | | | | (hostile at night, | to have a Smith and a | | | | otherwise passive; | merchant. Maybe a doctor | | | | becomes hostile, if hurt) | would be nice. | | | | 3 - regular mob (hostile 24/7) | | +---------------+------------------------+--------------------------------+-----------------------------+
PS: All above is just questions, though. Don't get me wrong, please!
Thank you. I was wondering if we could collaborate to make a better mod. You could have normal NPCs while i have peaceful ones. :-)jordan4ibanez wrote:I changed the license to WTFPL so anyone can make a mod of it, but please, no one make a shitty mod of it, i haven't tested this, but it sounds pretty good
Is your damage off.aximx51v wrote:Wow. really cool intellegence on these NPCs!
any idea's as to why I'm not getting injured? they chase me, i let them walk inside of me, but i could stand there all day and they never do damage. i run 4.4-d1, does it need to be a different version?
also, the game likes to crash whenever an NPC jumps while occupying the same space as me.
+1PilzAdam wrote:Maybe you should think about using the Simple Mobs API.
do you have armors mod installed?jojoa1997 wrote:Is your damage off.aximx51v wrote:Wow. really cool intellegence on these NPCs!
any idea's as to why I'm not getting injured? they chase me, i let them walk inside of me, but i could stand there all day and they never do damage. i run 4.4-d1, does it need to be a different version?
also, the game likes to crash whenever an NPC jumps while occupying the same space as me.
The "enable damage" box is checked. I do have the armor (older version) mod installed, and i had wondered if that could be the issue, but when i removed my armor (in the game) it didn't seem to affect anything. MOB framework works well with the armor mod, i guess i just assumed that the NPC did too.Mito551 wrote:+1PilzAdam wrote:Maybe you should think about using the Simple Mobs API.
do you have armors mod installed?jojoa1997 wrote:Is your damage off.aximx51v wrote:Wow. really cool intellegence on these NPCs!
any idea's as to why I'm not getting injured? they chase me, i let them walk inside of me, but i could stand there all day and they never do damage. i run 4.4-d1, does it need to be a different version?
also, the game likes to crash whenever an NPC jumps while occupying the same space as me.