Jump to content

Photo

A "Gas Mask" Script: For Perpetual Damage rooms.


  • Please log in to reply
8 replies to this topic

#1 ShadowTiger

ShadowTiger

    The Doctor Is In

  • Members

Posted 03 August 2007 - 06:07 PM

I had an interesting idea for a script which would power the use of a "Gas Mask" type item. In certain Dmaps, you'd have a naturally running Global Flag checking to see if you're on a certain Dmap when you enter a new screen. (So it wouldn't constantly be running. It'd only check once.) Then, if you are on that Dmap, you'd slowly lose health.

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
CODE
import "std.zh"
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.

#2 Linkus

Linkus

    .

  • Members
  • Real Name:Adam

Posted 03 August 2007 - 06:31 PM

Someone's been playing Metal Gear... Or Crystalis... icon_smile.gif Actually, that's almost exactly how the Gas Mask from MG or Crystalis works; you equip it (although you have to hold it as an item in MG) and the worries with gas is over.

Neat idea... And a lot of similar items also work this way. Blue Tunic with water and Red Tunic with heat, etc., that the script isteslf can be applied to many items!



#3 Nimono

Nimono

    Ultra Miyoa Extraordinaire!

  • Members
  • Real Name:Matthew
  • Location:Static Void Kingdom

Posted 05 August 2007 - 07:22 PM

If you perfect this script, give it to me in a form that can't be taken off, please. I'll need it for Level 7 of Legend of the Jewels, where there's poison in the air, and you take constant damage until you can negate it. icon_superevil.gif

#4 ShadowTiger

ShadowTiger

    The Doctor Is In

  • Members

Posted 05 August 2007 - 08:07 PM

I thought you know ZScript. icon_blah.gif

#5 Nimono

Nimono

    Ultra Miyoa Extraordinaire!

  • Members
  • Real Name:Matthew
  • Location:Static Void Kingdom

Posted 06 August 2007 - 09:00 AM

QUOTE(ShadowTiger @ Aug 5 2007, 09:07 PM) View Post

I thought you know ZScript. icon_blah.gif

I do. But I'm taking a giant humongous break from it... Until I actually NEED it. icon_razz.gif

#6 Schwa

Schwa

    Enjoy the Moment more. This strengthens Imagination.

  • Members
  • Real Name:Hunter S.
  • Location:Redmond Subspace (I had a Potion)

Posted 10 August 2007 - 10:13 PM

Hmm... If the Item Editor supports negative numbers, which it probably doesn't, you could just give Link a Level 5 Heart Ring with the regeneration amount set to a negative number and disable it in every Dmap except the ones you want Link to suffocate in. Then your Level 7 would simply require two Dmaps, no scripting needed.

But I doubt it would work. >_<

#7 Mitchfork

Mitchfork

    no fun. not ever.

  • Contributors
  • Real Name:Mitch
  • Location:Alabama

Posted 10 August 2007 - 10:47 PM

QUOTE(Schwa @ Aug 10 2007, 10:13 PM) View Post
Hmm... If the Item Editor supports negative numbers, which it probably doesn't, you could just give Link a Level 5 Heart Ring with the regeneration amount set to a negative number and disable it in every Dmap except the ones you want Link to suffocate in. Then your Level 7 would simply require two Dmaps, no scripting needed.

But I doubt it would work. >_<
SCHWA, YOU'RE A GENIUS!!! IT WORKS!!! The heart rings can actually take health away! *Grabs and gives Schwa a khuggle*

EDIT: In case you were wondering, this *almost* elimates the need of scripting. You'd still need a script to check for the "gas mask" item itself, but all it'd need to do is check for the item and make the "Unheart Ring" disabled on the dmap. You can even set how much health is taken away and how fast it goes, right in the Item Editor. He's said it before, and I'll say it again: Schwa is LAW.

Edited by Ebola Zaire, 10 August 2007 - 10:55 PM.


#8 Schwa

Schwa

    Enjoy the Moment more. This strengthens Imagination.

  • Members
  • Real Name:Hunter S.
  • Location:Redmond Subspace (I had a Potion)

Posted 10 August 2007 - 11:15 PM

Holy Christ, is that P0WNED or what!? *high fives Ebola Zaire with enough force to floor a Wizzrobe*

Well, Shady T, there you have it. No need to jump right to the conclusion that scripting must be used for half a guy's ideas... If you're creative, you don't need scripts to do the impossible. The fact that scripting never existed before 2.5 and we could still fabricate seemingly impossible tricks and techniques within the limitations, proves it. icon_biggrin.gif

Though scripting is still pretty cool. Don't get me wrong. icon_wink.gif

Hmm... I wonder if you can create a sword that heals enemies when you attack them using negative numbers in the item editor. Or a boomerang that you throw backwards. icon_eek.gif

Edit: Even BETTER news, folks! Ladies and gentlemen, I give you, Schwa's 200th Post! icon_clap.gif

Edited by Schwa, 10 August 2007 - 11:16 PM.


#9 Mitchfork

Mitchfork

    no fun. not ever.

  • Contributors
  • Real Name:Mitch
  • Location:Alabama

Posted 10 August 2007 - 11:18 PM

QUOTE(Schwa @ Aug 10 2007, 11:15 PM) View Post

Hmm... I wonder if you can create a sword that heals enemies when you attack them using negative numbers in the item editor. Or a boomerang that you throw backwards. icon_eek.gif
I thought of the exact same thing, with the sword. Although I doubt that one, only because there may not be a method for "restoring" enemy health. Further investigation is required!


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users