Author Topic: Cancel/Uncancel Event command  (Read 850 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Cancel/Uncancel Event command
« on: April 01, 2019, 11:00:40 AM »
Cancel/Uncancel event is an idea of command that is supposed to cancel the reason of execution of a command prompt. For example, used in a "get hurt" command prompt, this command will make the game act like if the enemy never get hurted, however, the commands still be executed.

This is for example used in this:
When you damage an enemy
Code: [Select]
sound = upload 1
<enemy 1>Ouch!
cancel event
The sound is executed, it says ouch but the damage is simply not received.

Uncancel event is the same command but it's used when the event has been canceled, this nulls any cancel event before, anyways, it can be canceled again.

Source where I extracted this idea: https://skriptlang.github.io/Skript/effects.html#EffCancelEvent
« Last Edit: April 01, 2019, 11:02:28 AM by Antikore »
Sorry because my English is not very good because I'm Spanish ;) :P