×

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
  • /
  • Modules
  • /
  • [Script] Pet Mouse
1 / 4 › »
[Script] Pet Mouse
Issey
« Citoyen »
1381524180000
    • Issey#0000
    • Profil
    • Derniers messages
#1
  0
Issey a dit :
players={}
i=0

mouseLeft=[[
<ROSE>&lt;'J___)---
]]
mouseRight=[[
<ROSE>---(___C'>
]]

function eventNewGame()
tfm.exec.setUIShamanName("<CH>Script By: <BV>Issey")
tfm.exec.setUIMapName("<VP>Pet Mouse")
end

function eventNewPlayer(name)
players[name]={
x=tfm.get.room.playerList[name].x,
y=tfm.get.room.playerList[name].y,
id=i
}
print(players[name].x)
if(tfm.get.room.playerList[name].isFacingRight) then
mouse=mouseRight
else
mouse=mouseLeft
end
ui.addTextArea(players[name].id,mouse,nil,players[name].x,players[name].y,0,0,0xffffff,0xffffff,0.0)
i=i+1
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventLoop(tc,tr)
for name,player in pairs(tfm.get.room.playerList) do
if not tfm.get.room.playerList[name].isDead then
local x= tfm.get.room.playerList[name].x
local y= tfm.get.room.playerList[name].y
if(tfm.get.room.playerList[name].isFacingRight) then
mouse=mouseRight
x=x+20
else
mouse=mouseLeft
x=x-20
end
y=y-10
if(x~=players[name].x) or (y~=players[name].y) then
ui.addTextArea(players[name].id,mouse,nil,x,y,0,0,0xffffff,0xffffff,0.0)
end
end
end
end

Closest a normal player could get to replacing mice with images c:
Kidxdeath
« Citoyen »
1381524480000
    • Kidxdeath#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
This looks fun let me try it
Emberkitx
« Citoyen »
1381524480000
    • Emberkitx#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
it didnt work o.o
Issey
« Citoyen »
1381524480000
    • Issey#0000
    • Profil
    • Derniers messages
#4
  0
there fixed
Kidxdeath
« Citoyen »
1381524720000
    • Kidxdeath#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
U need to redo this,
Issey said:players={}
i=0

mouseLeft=[[
&lt;ROSE&gt;&amp;lt;'J___)---
]]
mouseRight=[[
&lt;ROSE&gt;---(___C'&gt;
]]
Shamousey
« Consul »
1381524720000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Haha nice little script, it's a shame it's laggy with player co-ordinates ;;
Issey
« Citoyen »
1381524720000
    • Issey#0000
    • Profil
    • Derniers messages
#7
  0
Kidxdeath a dit :
U need to redo this,
Issey said:players={}
i=0

mouseLeft=[[
&amp;amp;lt;ROSE&amp;amp;gt;&amp;amp;amp;lt;'J___)---
]]
mouseRight=[[
&amp;amp;lt;ROSE&amp;amp;gt;---(___C'&amp;amp;gt;
]]

Yeah, fixed now

Shamousey a dit :
Haha nice little script, it's a shame it's laggy with player co-ordinates ;;

Not laggy, the timer in eventLoop is just too slow c:
Kidxdeath
« Citoyen »
1381524840000
    • Kidxdeath#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
OMFG THIS IS cool, but you need to edit the pet its just a purplr outline


http://i.imgur.com/ta2eMUR.jpg
Mousechris
« Censeur »
1381525320000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Something Issey requested me to show her the lua link that relates to this

a dit :
players={}
i=0

mouseLeft=[[
<ROSE><font size='100' face='Verdana'>♥
]]
mouseRight=[[
<ROSE><font size='100' face='Verdana'>♥
]]

function eventNewPlayer(name)
players[name]={
x=tfm.get.room.playerList[name].x,
y=tfm.get.room.playerList[name].y,
id=i
}
print(players[name].x)
if(tfm.get.room.playerList[name].isFacingRight) then
mouse=mouseRight
else
mouse=mouseLeft
end
ui.addTextArea(players[name].id,mouse,nil,players[name].x,players[name].y,0,0,0xffffff,0xffffff,0.0)
i=i+1
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventLoop(tc,tr)
for name,player in pairs(tfm.get.room.playerList) do
if not tfm.get.room.playerList[name].isDead then
local x= tfm.get.room.playerList[name].x
local y= tfm.get.room.playerList[name].y
if(tfm.get.room.playerList[name].isFacingRight) then
mouse=mouseRight
x=x-40
else
mouse=mouseLeft
x=x-45
end
y=y-70
if(x~=players[name].x) or (y~=players[name].y) then
ui.addTextArea(players[name].id,mouse,nil,x,y,0,0,0xffffff,0xffffff,0.0)
end
end
end
end

Test it out
Kidxdeath
« Citoyen »
1381525320000
    • Kidxdeath#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Ok. Famous Map edior "Mousechris"

http://i.imgur.com/Kv8p6oS.jpg
Yeah this is better
Mousechris
« Censeur »
1381525980000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
http://pastebin.com/xreNbbda

Improved it even more
Kidxdeath
« Citoyen »
1381526520000
    • Kidxdeath#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
http://i.imgur.com/W6wPrjE.jpg

http://i.imgur.com/hXPso9Y.jpg
Awsome. Im using this at Valentimes day
Mousechris
« Censeur »
1381526760000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
http://pastebin.com/PFpXU8wG

Creepy faces are creepy :D
Kidxdeath
« Citoyen »
1381526760000
    • Kidxdeath#0000
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Its a picture frame and its pink and blue
Try this
players={}
i=0

mouseLeft=[[
<Rose><font size='100' face='Comic Sans MS'>@.@
]]
mouseRight=[[
<BV><font size='100' face='Comic Sans MS'>O.o
]]
function eventNewPlayer(name)
players[name]={
x=tfm.get.room.playerList[name].x,
y=tfm.get.room.playerList[name].y,
id=i
}
print(players[name].x)
if(tfm.get.room.playerList[name].isFacingRight) then
mouse=mouseRight
else
mouse=mouseLeft
end
ui.addTextArea(players[name].id,mouse,nil,players[name].x,players[name].y,0,0,0xffffff,0xffffff,0.0)
i=i+1
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventLoop(tc,tr)
for name,player in pairs(tfm.get.room.playerList) do
if not tfm.get.room.playerList[name].isDead then
local x= tfm.get.room.playerList[name].x
local y= tfm.get.room.playerList[name].y
if(tfm.get.room.playerList[name].isFacingRight) then
mouse=mouseRight
x=x-40
else
mouse=mouseLeft
x=x-45
end
y=y-70
if(x~=players[name].x) or (y~=players[name].y) then
ui.addTextArea(players[name].id,mouse,nil,x,y,0,0,0x001000,0xffffff,0.0)
end
end
end
Zolipop
« Citoyen »
1381662960000
    • Zolipop#0000
    • Profil
    • Derniers messages
    • Tribu
#15
  0
Other color code?
Pomamopa
« Citoyen »
1381675080000
    • Pomamopa#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  0
Try using webdings or wingdings fonts. There are more useful symbols to use.
Shamousey
« Consul »
1381677420000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#17
  0
Pomamopa a dit :
Try using webdings or wingdings fonts. There are more useful symbols to use.

That becomes an issue because people on non-Windows operating systems won't have those fonts.
Esh
« Censeur »
1381694820000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#18
  0
"What you do with me" : http://pastebin.com/8CRAPj0X
Issey
« Citoyen »
1381764060000
    • Issey#0000
    • Profil
    • Derniers messages
#19
  0
petMouse a dit :

players={}
i=0

map=[[<C><P /><Z><S><S X="399" L="799" Y="390" H="63" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="399" o="324650" L="1600" Y="202" c="4" H="400" P="0,0,0.3,0.2,0,0,0,0" T="12" N="" /></S><D><DS X="29" Y="336" /></D><O /></Z></C>]]
tfm.exec.newGame(map)
mouseLeft=[[


<b><ROSE>&lt;'J___)---
]]
mouseRight=[[


<b><ROSE>---(___C'>
]]

function eventNewPlayer(name)
players[name]={
x=tfm.get.room.playerList[name].x,
y=tfm.get.room.playerList[name].y,
id=i
}
print(players[name].x)
if(tfm.get.room.playerList[name].isFacingRight) then
mouse='\t'..name..mouseRight
else
mouse='\t'..name..mouseLeft
end
ui.addTextArea(players[name].id,mouse,nil,players[name].x,players[name].y,0,0,0xffffff,0xffffff,0.0)
i=i+1
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventLoop(tc,tr)
for name,player in pairs(tfm.get.room.playerList) do
if not tfm.get.room.playerList[name].isDead then
local x= tfm.get.room.playerList[name].x
local y= tfm.get.room.playerList[name].y
if(tfm.get.room.playerList[name].isFacingRight) then
mouse='\t'..name..mouseRight
else
mouse='\t'..name..mouseLeft
end
if(x~=players[name].x) or (y~=players[name].y) then
ui.addTextArea(players[name].id,mouse,nil,x,y,0,0,0xffffff,0xffffff,0.0)
end
end
end
end

this works..
Ninjaheropo
1381769340000
    • Ninjaheropo#0000
    • Profil
    • Derniers messages
    • Tribu
#20
[Modéré par Bolinboy, raison : Not english]
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Pet Mouse
1 / 4 › »
© Atelier801 2018

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

Version 1.27