BSL:Tutorial/Scratch: Difference between revisions

Line 194: Line 194:
Use the <tt>chr_set_health</tt> command to set a character's health. Note that each character has a base health that may not be the same. For example, konoko's base health is 200, while a brown striker's is only 50. Keep this in mind when setting character's health. Setting it over their base health will send them into overpower - like using a hypo at full health. The health will drain at 1 every second even for AI.
Use the <tt>chr_set_health</tt> command to set a character's health. Note that each character has a base health that may not be the same. For example, konoko's base health is 200, while a brown striker's is only 50. Keep this in mind when setting character's health. Setting it over their base health will send them into overpower - like using a hypo at full health. The health will drain at 1 every second even for AI.
*Attention! Attention! If ''that'' was true, Konoko's overpower would last 200 seconds : over 3 minutes. Which it doesn't.
*Attention! Attention! If ''that'' was true, Konoko's overpower would last 200 seconds : over 3 minutes. Which it doesn't.
*Then is it 1 point per frame = 200 frames ?
This example sets konoko's health to 400 - overpower.
This example sets konoko's health to 400 - overpower.
  chr_set_health 0 400
  chr_set_health 0 400
Anonymous user