Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- finger = {
- index = {exists = true, colour = "blue", damage = 34, timer = 13}
- middle = {exists = true, colour = "blue", damage = 54, timer = 42}
- ring = {exists = true, colour = "blue", damage = 31, timer = 23}
- pinky = {exists = true, colour = "blue", damage = 94, timer = 70}
- }
- function brokefingernail(nail)
- finger[nail].exists = false
- nailTimerEcho = nail
- tempTimer( finger[nailTimerEcho].timer-1,
- function()
- finger[nailTimerEcho].balance = true
- omni.echo("<cyan>"..nailTimerEcho:title() .." regrown!")
- end
- ]])
- end
- Everytime a nail breaks, I went to trigger off it and then echo when it regrows. I am trying to make a general function for this so I don't have to c/p the timer for each trigger. However when I run this, and multiple fingernail break at once, the last thing that broke is echoed repeatedly, instead of each one in turn.
- For example,
- middle nail breaks,
- Index nail breaks,
- index regrows,
- echo index regrows,
- middle regrows,
- echo index regrows.
- , i want it to correct echo when the middle regrows.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement