Brenower

Sistema de nível

May 17th, 2014
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. -- Créditos:Brenower
  2. exp = 0;
  3. ni = 1;
  4. expp = 200;
  5.  
  6. function nivel()
  7. if exp >= expp then
  8. expp=expp*2;
  9. ni=ni+1;
  10. exp=0;
  11. end
  12. end
  13.  
  14. function eventLoop()
  15. tfm.exec.setUIMapName("É ASSIM QUE SE FAZ UM SISTEMA DE NÍVEl: <Vp>EXP : <n>"..exp.."/"..expp.." <V>Nível :<n> "..ni.."<p")
  16. nivel()
  17. exp=exp+100;
  18. end
Advertisement
Add Comment
Please, Sign In to add comment