YesNoOk
avatar

Alive (Triggers) (Read 5210 times)

Started by JustNoPoint, September 10, 2015, 03:33:53 pm
Share this topic:
Alive (Triggers)
New #1  September 10, 2015, 03:33:53 pm
  • ******
    • www.justnopoint.com/
Returns 1 if the player is still able to fight, 0 if the player has been KOed.

Format:
alive
Arguments:
none
Return type:
boolean int (1 or 0)
Error conditions:
none
Example:

Code:
trigger1 = Alive = 0
  Triggers if the player has been KOed.
Last Edit: September 18, 2015, 02:50:32 pm by Just No Point
Re: Alive (Triggers)
#2  September 11, 2015, 07:24:43 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Commonly used for outs in custom states, win/lose screens and simul mode checks. Often used as part of a redirect

partner, alive

target, alive

enemynear, alive

Parent, alive (helpers that wander round and cry or something when the player dies)


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Alive (Triggers)
#3  September 11, 2015, 07:40:48 am
  • avatar
  • ***
  • ̢̻̮̫̬̹̞̼̲̪̜̭͇̲͒ͪ̌ͬ̒̄̔̐͘͟ͅ ̢̋ͬ̓͗̏̇̌̑͐ͤ͗̔̊̕͏̴̣͎̟͈̬͚
    • Monaco
triggerall= alive

a must for AI
http://signavatar.com/32255_s.gif

please visit my request thread. here
bad grammar is art
Re: Alive (Triggers)
#4  September 15, 2015, 03:58:11 pm
  • *****
  • Thanks and God bless
    • USA
    • ricepigeon.neocities.org
Minor point to add here, but Alive=1 and Alive=0 are functionally equivalent to Life>0 and Life<=0, respectively.