Find
You are looking at a switchy button
This is a rather special switchy button.
push the switchy button
to swap your health and your mana.
Created by
dust speck
, last updated 24 Jul 2012
Code
if target of push then prevent;
##prevent:
if $init_obj's mana = 0 then idtst else healthmanaswitch;
##idtst:
call "say You don't have any mana to switch your health with!";
##healthmanaswitch:
var $amt1 to $init_obj's manamax;
var $amt2 to $init_obj's healthmax;
set $init_obj's manamax to $amt2;
set $init_obj's mana to $amt2;
set $init_obj's healthmax to $amt1;
set $init_obj's health to $amt1;
call "say [$init_obj] had their mana and health switched and healed.";