If you possess the gas mask item, you can toggle it on and off. If it's on, it'd compare the value of the mask field against the script, and if it's on, you won't lose health anymore. I might even change Link's appearance, if possible. (Is it?) I might even change the music, too. I've got a nice Rise Of The Triad Gas Mask midi I can use. (Good stuff.)
Here's what I have so far. Note that it's from my head on a whim, and is therefore entirely incorrect. o_o
global script gasmask; {
void main()
int dmapnumber;
int screennumber;
{
Waitframe()
GetCurMap() = dmapnumber;
GetCurScreen() = screennumber;
{
}
}
}
... Something tells me that I should acquire more experience with ZScript and math before I go any further. X x.