All pastes #552721 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-09 12:40 UTC
rendered paste body
		Kaio_Ken()
			set hidden=1
			if(src.Resting==1 || src.Shooting==1 || src.Flying==1 || src.Kaio_Ken==1){src<<"<font color=red>You are already doing something";return}
			oview()<<"<font color=silver><Font size=0.5>[src] releases huge amounts of energy!"
			src<<"<font color=silver><Font size=0.5>You have used Kaio Ken"
			src.Kaio_Ken=1
			src.Power+=src.Level*25
			var/image
				top=image(icon='kaioken.dmi',icon_state="top",pixel_y=32)
				bottom=image(icon='kaioken.dmi',icon_state="bottom")
			src.overlays.Add(top,bottom)
			while(src.MaxEnergy/10>=src.Energy)
				src<<"<i><font color=\"red\">Your body and energy is under strain.</font></i>" //you may want to make a toggle for showing this, as it will annoy many players if it spams them all the time
				src.Energy-=MaxEnergy/10
				sleep(50)
			overlays.Remove(top,bottom)
			src.Kaio_Ken=0
			src.Power-=src.Level*25