Skip to content

Commit 0009c18

Browse files
authored
improved the setUIMapName
1 parent c7efff3 commit 0009c18

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

dodge.lua

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
system.disableChatCommandDisplay("modos")
1616

1717
print("<img src='https://i.imgur.com/CsIOXFg.png' /><br /><br /><br /><br /><br /> <br>")
18+
print("<br><p align='left'><font color='#638071'>[DODGE] </font><font color='#7CD499'>Welcome to </font><b><font color='#D2EC16'>#dodge </font></b><font color='#7CD499'>survive the cannons!<br>Plase Type</br> <b><font color='#33AA74'>!help</font></b> to show more information about this. </font><font color='#7CD499'>see the project repository here:</font><b><font color='#33AA74'>https://github.com/Factral/dodge</font></b></p>")
1819

1920
boxes={
2021
help={
@@ -115,15 +116,19 @@
115116
end
116117
--modio dios
117118
if dios == 80 then
118-
tfm.exec.setUIMapName("<YELLOW>#dodge by factral| Modo Dios En Unos Segundos ... .. . .. . ")
119+
tfm.exec.setUIMapName("<YELLOW>#dodge by factral <font color='#5c5474'>|</font> <N> Modo Dios En Unos Segundos.... ... .. .")
119120
end
120121
if dios == 100 then
121122
local value = math.random(1,#cannones) -- Get random number with 1 to length of table.
122123
local picked_value = cannones[value] -- Pick value from table
123124
idCannon=picked_value
124125
end
125126
if dios >= 100 and not modoCrono then
126-
tfm.exec.setUIMapName("<YELLOW>#dodge by factral <N>Ronda: <V>"..numeroRonda.."/7 <N>Modo: <V>Estandar")
127+
if modoIndividual then
128+
tfm.exec.setUIMapName("<YELLOW>#dodge by factral <N>Modo: <V>Individual")
129+
else
130+
tfm.exec.setUIMapName("<YELLOW>#dodge by factral <N>Ronda: <V>"..numeroRonda.."/7 <N>Modo: <V>Estandar")
131+
end
127132
tfm.exec.addShamanObject(idCannon, 840, math.random()*350, 270)
128133
tfm.exec.addShamanObject(idCannon, 840, math.random()*350, 225)
129134
end
@@ -566,7 +571,7 @@ function eventPlayerDied(name)
566571
bool = true
567572
winned= true
568573
tfm.exec.setGameTime(5)
569-
tfm.exec.setUIMapName("<YELLOW>#dodge by factral | Cambiando De Mapa.....")
574+
tfm.exec.setUIMapName("<YELLOW>#dodge by factral <font color='#5c5474'>|</font> <N>Cambiando De Mapa.....")
570575
--eliminar cañones
571576
for idCannon, object in pairs(tfm.get.room.objectList) do
572577
table.insert(IDList, idCannon)
@@ -580,8 +585,8 @@ function eventPlayerDied(name)
580585
if playersAlive == 0 and not rondaFinal then
581586
bool = true
582587
tfm.exec.setGameTime(5)
583-
tfm.exec.setUIMapName("<YELLOW>#dodge by factral | Cambiando De Mapa.....")
584-
--eliminar cañones
588+
tfm.exec.setUIMapName("<YELLOW>#dodge by factral <font color='#5c5474'>|</font> <N>Cambiando De Mapa.....")
589+
--eliminar cañones
585590
for idCannon, object in pairs(tfm.get.room.objectList) do
586591
table.insert(IDList, idCannon)
587592
end

0 commit comments

Comments
 (0)