×

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] Wedding!
« ‹ 6 / 6
[Script] Wedding!
Tat
« Censeur »
1453170540000
    • Tat#0095
    • Profil
    • Derniers messages
    • Tribu
#101
  0
Changed a bit of the code, and added kissing! :D
You can also refuse to wed hehehe

Script:
groom='groom'
bride='bride'


f=400
e=350
a=0
t=0
p=0
finale=0

groomanswer=0
brideanswer=0
positiongroomlock=1
positionbridelock=0
bridewalking=0
stop=5
facepaw=0
p={}

tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAfkDeath(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.newGame('@5014080')

function eventNewGame()
tfm.exec.movePlayer(groom,1380, 290,offset,0,0,offset)
tfm.exec.killPlayer(bride)
system.disableChatCommandDisplay("start",true)
for name,player in pairs(tfm.get.room.playerList) do
p[name]={facepaw=false}
end
end

function eventNewPlayer(a)
p[name]={facepaw=false}
tfm.exec.respawnPlayer(a)
end

function eventChatCommand(name, message)
if name==groom and message=="start" then
t=48
end
end

function eventLoop(currentTime,timeRemaining)
t=t+1
if positiongroomlock==1 then
tfm.exec.movePlayer(groom,1380, 290,offset,0,0,offset)
end

if positionbridelock==1 then
tfm.exec.movePlayer(bride,1320, 290,offset,0,0,offset)
end

if t==50 then
ui.addTextArea(1,"I believe everyone is here. We will now begin.",nil, 1350, 180,150,40, color,color,Alpha,false)
end

if t==60 then
ui.addTextArea(1,"Please welcome the bride!",nil, 1350, 180,150,40, color,color,Alpha,false)
tfm.exec.respawnPlayer(bride)
tfm.exec.movePlayer(bride,400, 350,offset,0,0,offset)
bridewalking=1
stop=0
end


if stop==0 then

if bridewalking==1 then
tfm.exec.movePlayer(bride,f, 350,offset,0,0,offset)
f=f+20
end

if f > 1145 then
e=e-3.5
tfm.exec.movePlayer(bride,f, e,offset,0,0,offset)
end

if f>=1300 then
stop=1
bridewalking=0
positionbridelock=1
ui.addTextArea(1,"She is here!",nil, 1350, 180,150,40, color,color,Alpha,false)
t=1000
end
end

if t==1006 then
ui.addTextArea(1,"Let us begin the ceremony.",nil, 1350, 180,150,40, color,color,Alpha,false)
end

if t==1012 then
ui.addTextArea(1,"We gathered to witness and celebrate",nil, 1350, 180,150,40, color,color,Alpha,false)
end

if t==1018 then
ui.addTextArea(1,"The union of 2 souls in ethernal companionship.",nil, 1350, 180,150,40, color,color,Alpha,false)
end

if t==1024 then
ui.addTextArea(1,"May they journey forth in prosperity and poverty",nil, 1350, 180,150,40, color,color,Alpha,false)
end

if t==1030 then
ui.addTextArea(1,"and in joy and hardship",nil, 1350, 180,150,40, color,color,Alpha,false)
end

if t==1036 then
ui.addTextArea(1,'Do you, '..groom..', agree to be bound together in love now and forever?',nil, 1350, 160,150,70, color,color,Alpha,false)
groomanswer=1
end

if groomanswer==1 and t==1037 then
ui.addPopup(5, 1, "Do you agree to marry "..bride.." and be bound together in love now and forever?", groom, 272, 131, 253, true)
end

if groomanswer==2 then
ui.addTextArea(3,"I do. Now and forever",nil ,1330,200,100)
t=2000
groomanswer=3
end

if t==2006 and groomanswer==3 then
ui.removeTextArea(3,nil)
ui.addTextArea(1,'And do you, '..bride..', agree to be bound together in love now and forever?',nil, 1350, 160,150,70, color,color,Alpha,false)
ui.addPopup(6, 1, "Do you agree to marry "..groom.." and be bound together in love now and forever?", bride, 272, 131, 253, true)
end

if brideanswer==1 then
ui.addTextArea(3,"I do. Now and forever",nil ,1270,200,100)
t=3000
brideanswer=2
end

if t==3006 and brideanswer==2 then
ui.removeTextArea(3,nil)
ui.addTextArea(1,'Then congratiulation! I declare this couple to be wed. Now you may kiss your spouse',nil, 1350, 180,150,50, color,color,Alpha,false)
end

if t==3012 then
ui.removeTextArea(3,nil)
tfm.exec.movePlayer(groom,1380, 290,offset,0,0,offset)
tfm.exec.movePlayer(bride,1320, 290,offset,0,0,offset)
tfm.exec.playEmote(bride,3,nil)
tfm.exec.playEmote(groom,3,nil)
for name,player in pairs(tfm.get.room.playerList) do
if name==groom or name==bride then
else
tfm.exec.playEmote(name,5,nil)
end
end
finale=1
positiongroomlock=0
positionbridelock=0
end

if t>=3020 and t<9000 then
ui.addTextArea(1,"Now lets partyyy!",nil, 1350, 180,150,40, color,color,Alpha,false)
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.playEmote(name,0,nil)
end
t=3020
end

if t>=9012 and t<9036 then
ui.addTextArea(1,'This is a disaster! The worst wedding I have ever attended! YOU WILL ALL PERISH!',nil, 1350, 160,200,70, color,color,Alpha,false)

for name,player in pairs(tfm.get.room.playerList) do
if name==bride or name==groom then
if groomanswer==5 then
tfm.exec.playEmote(bride,2,nil)
tfm.exec.playEmote(groom,1,nil)
else
tfm.exec.playEmote(bride,1,nil)
tfm.exec.playEmote(groom,2,nil)
end
elseif p[name].facepaw==false then
tfm.exec.playEmote(name,7,nil)
p[name].facepaw=true
end
end
end
if t==9036 then
positiongroomlock=0
positionbridelock=0
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.killPlayer(name)
end
ui.addTextArea(1,"I'M THE RULER OF 'EM ALL! HAHAHAHAHA!!",nil, 1350, 160,160,70, color,color,Alpha,false)
end
if t==9050 then
system.exit()
end
end

function eventPopupAnswer(popupID, name, answer)
if popupID==5 and name==groom then
if answer=="yes" then
groomanswer=2
else
groomanswer=5
t=9000
ui.addTextArea(3,"Screw this, I quit!",nil ,1330,200,100)
end
elseif popupID==6 then
if answer=="yes" then
brideanswer=1
else
brideanswer=5
t=9000
ui.addTextArea(3,"Screw this, I quit!",nil ,1270,200,100)
end
end
end
Jow
« Consul »
1453405080000
    • Jow#4884
    • Profil
    • Derniers messages
#102
  0
Great and funny.
Leoobey
« Citoyen »
1453834260000
    • Leoobey#0000
    • Profil
    • Derniers messages
    • Tribu
#103
  0
what the code dude?
Amrtast
« Censeur »
1453834320000
    • Amrtast#0000
    • Profil
    • Derniers messages
#104
  0
Leoobey a dit :
what the code dude?

Click here

Dernière modification le 1454857500000
Shamiman
« Citoyen »
1455381480000
    • Shamiman#0000
    • Profil
    • Derniers messages
    • Tribu
#105
  0
Where does it say the code ;[
Velspar
« Citoyen »
1455390060000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#106
  0
Original
http://pastebin.com/raw/tKG2SJ6Y
Mousetat's Version "Changed a bit of the code, and added kissing! :D" -Mousetat
http://pastebin.com/raw/rzGi5EHK
Bepperluver's Version "I have improved the grammar here" - Bepperluver
http://pastebin.com/raw/Ee5ygDQb

Not sure their differences, but the 2 claim theirs to be altered in some way.
Bebe
« Citoyen »
1455427800000
    • Bebe#7509
    • Profil
    • Derniers messages
#107
  0
How do you use this?
Kit
« Archonte »
1455434220000
    • Kit#9532
    • Profil
    • Derniers messages
    • Tribu
#108
  0
hexheart a dit :
How do you use this?

go to your tribe house
type /lua into the chat, then copy + paste the code you see into the box, then hit "submit"
you need to have the ability to use the /np command in the tribe house, though
Crumbley
« Citoyen »
1456063620000
    • Crumbley#0000
    • Profil
    • Derniers messages
#109
  0
Where's the script? o.o
Sea
« Censeur »
1456159680000
    • Sea#6504
    • Profil
    • Derniers messages
    • Tribu
#110
  0
Crumbley a dit :
Where's the script? o.o

??????
Ringcool
« Citoyen »
1467691080000
    • Ringcool#0000
    • Profil
    • Derniers messages
    • Tribu
#111
  0
On the pastebin lmoa
Gatan
« Censeur »
1468867980000
    • Gatan#1201
    • Profil
    • Derniers messages
    • Tribu
#112
  0
Two girls were arguing in my tribe house, and I made'em marry.
"I DON'T WANNA MARRY HER"

We need a "protest against wedding" option to the guests x)

Dernière modification le 1468868040000
Kirito
« Citoyen »
1479637200000
    • Kirito#2773
    • Profil
    • Derniers messages
#113
  0
How does the map work????
Kirito
« Citoyen »
1479637200000
    • Kirito#2773
    • Profil
    • Derniers messages
#114
  0
how do you decide who marrys who!?
Coraborra
« Citoyen »
1518323940000
    • Coraborra#0000
    • Profil
    • Derniers messages
    • Tribu
#115
  0
Is there a way I could edit the map (not make a new one)? I have tried loading it in map editor but it says it no longer exists.
Wedding
« Citoyen »
1566777000000
    • Wedding#0948
    • Profil
    • Derniers messages
#116
  0
whats the map name? and yes my name is wedding
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Wedding!
« ‹ 6 / 6
© Atelier801 2018

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

Version 1.27