Advertisement
Tectoon

[TFM] Mapa facil,Médio,Dificil

Sep 6th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. easy = {"@1111111","@1111112","@1111113"}
  2. Easy = easy[math.random(#easy)]
  3. medium = {"@1111133","@1111135","@1111138"}
  4. Medium = medium[math.random(#medium)]
  5. hard = {"@1111116","@1111333","@1111152"}
  6. Hard = hard[math.random(#hard)]
  7. difficulty = {Easy,Medium,Hard}
  8. Difficulty = difficulty[math.random(#difficulty)]
  9. tfm.exec.newGame(Difficulty)
  10. function eventNewGame()
  11.   if Difficulty==Easy then
  12.     tfm.exec.setUIMapName("<J>"..tfm.get.room.xmlMapInfo.author.." <N>- <BL>@"..tfm.get.room.xmlMapInfo.mapCode.." <N>- <BV>Dificuldade: <B>Fácil</B>")
  13.   elseif Difficulty==Medium then
  14.     tfm.exec.setUIMapName("<J>"..tfm.get.room.xmlMapInfo.author.." <N>- <BL>@"..tfm.get.room.xmlMapInfo.mapCode.." <N>- <BV>Dificuldade: <B>Médio</B>")
  15.   elseif Difficulty==Hard then
  16.     tfm.exec.setUIMapName("<J>"..tfm.get.room.xmlMapInfo.author.." <N>- <BL>@"..tfm.get.room.xmlMapInfo.mapCode.." <N>- <BV>Dificuldade: <B>Difícil</B>")
  17.   end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement