| [Lua] addNpc |
| 6 | ||
| With this option on lua api, it would be possible to add some npcs: tfm.exec.addNpc(Npc name, position X, position Y, Direction, Look) - adds an npc, returning an id for each npc added. tfm.exec.moveNpc(Npc id, position X, position Y, walking) - move an npc, according to your id, if walking is true, the npc will walk to the X and Y position. tfm.exec.sendNpcMessage(Npc id, message, time)- make an npc speak, according to it ID. tfm.exec.removeNpc(Npc id)- removes an npc. tfm.get.room.npcList- returns a list of all the npcs present on the map, with their id, name, position and look. |
| « Citoyen » 1413642060000
| 0 | ||
| Why not? It looks like bots. I like it /support |
| « Consul » 1413710520000
| 1 | ||
| How would walking work if you have to make them go up a wall or across a gap, they can't know how to do that. It might be better in my opinion to have tfm.exec.moveNpc(id,direction,time). Direction would be the way the NPC is walking (left/right/jump/duck) and time would be how long they're pressing that key. Some way to make an NPC do emotes would be nice too. I'd like to see this added, I see a few potential uses. |
| « Citoyen » 1413738000000
| 0 | ||
| This would be useful. You could have an NPC do a tutorial thing before a player knows what to do, or a Simon Says thing. /support |
| « Citoyen » 1413831660000
| 0 | ||
| Yay! good idea /support |
| « Citoyen » 1413832740000
| 0 | ||
| /support This would be fun xD |
| « Censeur » 1459523640000
| 0 | ||
| /support |
| « Citoyen » 1459550220000
| 0 | ||
| I support this. In addition to this, you could also have other functions that would give you the ability to customize the looks of the NPCs (ex: add fur, neck items, etc.). |
| « Censeur » 1459592220000
| 0 | ||
| Support |
| 0 | ||
| /support This would be great for tribes, |
| « Consul » 1459702560000
| 0 | ||
| This could be good for a tfm tutorial people are going to see a bot teaching them and telling them what to do then you do it Or the creators of the minigames can use this as a new way to teach people how to play a minigame Rather than a popup I would love to see this Dernière modification le 1459702680000 |
| 0 | ||
| Support |
| « Citoyen » 1461348480000
| 0 | ||
| I don't use lua, but why not? /support |
| « Censeur » 1461392340000
| 0 | ||
| /support We'll dress the npc how we want right? |
| « Citoyen » 1461397380000
| 0 | ||
| /support Dernière modification le 1513413180000 |
| « Censeur » 1461398880000
| 0 | ||
| Support. |
| « Consul » 1461399900000
| 0 | ||
| /support |
| 0 | ||
| maybe... |
| « Citoyen » 1469955840000
| 0 | ||
| Absolutely! Support! |