Jump to content

Photo

I am trying to make a reverse of healing potion but have error


  • Please log in to reply
1 reply to this topic

#1 LikeLike888

LikeLike888

    Spicy food lover!!

  • Members
  • Real Name:Jason
  • Location:North America

Posted 05 December 2016 - 09:11 PM

Here is my script:

while!(Link->HP == 0)
{
  Link->HP -= 0.5;
  Game->PlaySound(23);
}

I when to

Quest

Scripts

Compile ZScripts

 

and then I left click on Import

and I double left clicked on the .z file that has up above

mentioned code and tried to import but no luck.

 

 

How do I fix up above code so it works properly please? Thank you.



#2 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 06 December 2016 - 03:56 AM

item script Pick_Up_The_Pacemaker {
  void run() {
    Link->HP = 0;
    Game->PlaySound(23);
  }
}



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users