You can try to use aliases as separate blocks of your code that can be run after the desired time using a timer.

For example:
Code
on *:TEXT:!battle*:#:{
...
  .timerBattle 1 120 battle
...
}

alias -l battle {
  if (%startbattle) {
    if (%easyboss == An Angry Cow (HP: 30)) { var %bosshealth 30 }
    if (%easyboss == A Spider (HP: 40)) { var %bosshealth 40 }
    if (%easyboss == A Goblin (HP: 50)) { var %bosshealth 50 }
    .msg # The Damage from chat is %chatattack $+ . The boss has %bosshealth HP 
    if (%damage >= %bosshealth) { .msg # You killed the boss! | return }
    if (%damage < %bosshealth) { .msg # The boss wiped out the chat! | return }
  }
  else { return }
}


🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples