×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Suggestions
  • /
  • [Lua] addNpc
1 / 2 › »
[Lua] addNpc
Esh
« Censeur »
1413641760000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#1
  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.
Benbirkralm
« Citoyen »
1413642060000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Why not? It looks like bots. I like it /support
Shamousey
« Consul »
1413710520000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#3
  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.
Itchyboy
« Citoyen »
1413738000000
    • Itchyboy#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  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
Enginfener
« Citoyen »
1413831660000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Yay! good idea /support
Foenixtake
« Citoyen »
1413832740000
    • Foenixtake#0000
    • Profil
    • Derniers messages
#6
  0
/support
This would be fun xD
Zajaci
« Censeur »
1459523640000
    • Zajaci#8309
    • Profil
    • Derniers messages
    • Tribu
#7
  0
/support
Woebegone
« Citoyen »
1459550220000
    • Woebegone#8377
    • Profil
    • Derniers messages
    • Tribu
#8
  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.).
Anthonyjones
« Censeur »
1459592220000
    • Anthonyjones#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Support
Bebe
« Citoyen »
1459620900000
    • Bebe#7509
    • Profil
    • Derniers messages
#10
  0
/support

This would be great for tribes,
Error_404
« Consul »
1459702560000
    • Error_404#0000
    • Profil
    • Derniers messages
#11
  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
Tomni
« Citoyen »
1461309840000
    • Tomni#4777
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Support
Szapka
« Citoyen »
1461348480000
    • Szapka#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
I don't use lua, but why not?

/support
Sunflowers
« Censeur »
1461392340000
    • Sunflowers#3568
    • Profil
    • Derniers messages
#15
  0
/support
We'll dress the npc how we want right?
Adriantal
« Citoyen »
1461397380000
    • Adriantal#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  0
/support

Dernière modification le 1513413180000
Charbz
« Censeur »
1461398880000
    • Charbz#3144
    • Profil
    • Derniers messages
#17
  0
Support.
Dea_bu
« Consul »
1461399900000
    • Dea_bu#0000
    • Profil
    • Derniers messages
    • Tribu
#18
  0
/support
Okiuz
« Citoyen »
1461513900000
    • Okiuz#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
maybe...
Drgenius
« Citoyen »
1469955840000
    • Drgenius#0000
    • Profil
    • Derniers messages
    • Tribu
#20
  0
Absolutely! Support!
  • Forums
  • /
  • Transformice
  • /
  • Suggestions
  • /
  • [Lua] addNpc
1 / 2 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27