Jump to content

Photo

ALttP Mail/Tunic script.


  • Please log in to reply
8 replies to this topic

#1 Orithan

Orithan

    Studying Scientist - Commission from Silvixen

  • Members
  • Location:Australia

Posted 28 February 2012 - 07:23 AM

This was made for RC2, but it should work in the most recent build.

This script is based on the Tunic/Mail items from TLoZ: A Link to the Past.

What it does is that it reduces the amount of damage that Link takes from enemies by a set amount of hearts. If the result is less than a heart, it divides the amount of damage then. The item scripts MUST be used in the item's pickup slot or they won't work.

Script


Variables:

LttPMail:

Level - Used to set the tunic to work.

D0 - The amount of damage, in full hearts, that you want to make the tunic reduce.

D1 - The divisor that the amount of damage gets divided by, if the first result is less than a heart. DO NOT LEAVE THIS AS 0!!!

LttPMailRemover:

D0 - Set this to the level of the highest-leveled tunic to remove them.

----------------

How to use:

Copy this code into your script file.

Put the line LttPMailRun(); into your main while-loop in your Slot_2 global script. Uncomment import "std.zh" if you don't have it imported already.

Compile the script.

Set the item's level, D0 and D1 variables in the item data and make sure to have the LttPMail item script assigned to it's pickup slot. Whatever you do, DO NOT LEAVE D1 AS 0!!! It is prefable to make it a Ring item, with it's damage divisor set to 1 regardless of level, so you can have it change Link's pallet.

(Optional) Make a new item, this time with the LttPMailRemover item script assigned to it's pickup slot and have D0 set to the highest leveled tunic there is in the quest, so that LttP_Tunic_Item_Activator gets reduced to 0. Give it to Link in order to remove it. It is also wise to remove each tunic item via script or DMap.

You should be all set! Just report any problems you have with it, if you have any at all.

---------------------------

This has been posted here to test this script before I send it into the script dropbox.

Edit: It appears that a complier error escaped me when I submitted it. Fixed icon_smile.gif.

Edited by Orin XD, 09 April 2012 - 03:59 AM.


#2 Orithan

Orithan

    Studying Scientist - Commission from Silvixen

  • Members
  • Location:Australia

Posted 09 April 2012 - 04:01 AM

I am asking for testers, to at least reply to this script.
Anyway, I fixed a complier error that escaped me while I was posting it. Sorry.

#3 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 09 April 2012 - 05:07 AM

But isn't this exactly the same as the ring item.? icon_blink.gif

#4 Orithan

Orithan

    Studying Scientist - Commission from Silvixen

  • Members
  • Location:Australia

Posted 09 April 2012 - 05:27 AM

QUOTE(Twilight_Knight @ Apr 9 2012, 08:07 PM) View Post
But isn't this exactly the same as the ring item.? icon_blink.gif


No. Play through LttP, get hit by a Snapdragon with no tunic upgrades and note how much damage you take. Get the Blue Mail and get hit by a Snapdragon again and note how much damage you take. If I recall correctly, you take 3 hearts damage with no Mail and 2 hearts with the Blue Mail. The same can also be said with Viterous (the boss in Misery Mire). This is how I worked out that the LttP Mails work diffrently to the ring items. If they worked in the same way, then the Snapdragon would deal 1.5 hearts damage with the Blue Mail on as opposed to 2 hearts in how thay work in LttP.

Edit: In most circumstances, it is exactly the same as the Ring Item. You start to notice the diffrence with this defense system when you fight, say a Deathknight.


Edited by Orin XD, 09 April 2012 - 05:29 AM.


#5 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 09 April 2012 - 06:43 AM

I believe the ring item can have the same effect too, but I'll test this whenever I have enough time.

#6 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 09 April 2012 - 10:52 AM

I think that's a coding error in LTTP the armoritems in all the other games just divide damage, never the less this could be quite useful.

#7 Orithan

Orithan

    Studying Scientist - Commission from Silvixen

  • Members
  • Location:Australia

Posted 09 April 2012 - 07:32 PM

QUOTE(blackbishop89 @ Apr 10 2012, 01:52 AM) View Post
I think that's a coding error in LTTP the armoritems in all the other games just divide damage, never the less this could be quite useful.
I don't think it was a coding error, LttP was the first game that with monsters that deal 3 or 5 whole hearts of damage w/o armour. This meant that it would have to produce some wierd results that the heart meter could not track properly (1/4 heart is fine, but 1 1/4 hearts is more what I'm talking about) if the armour functioned as if they did in Z1. I assumed it would subtract the damage, not divide it, with that in mind. It also stops the tunics from nerfing guys like Viterous and Ganon (Ganon would be a LOT easier if the mail worked as they did in Z1).

All the others divided because divison by 2 was the most you can get (with the exception of Z1) and that they could divide cleanly because, unlike LttP, almost all of the enemies' attacks could be either divide down to quarter, half or whole hearts.

I noticed a similar thing with the Swords. Now, let's take the LttP red guards from Hyrule Castle. They take 4 hits from the L1 sword to kill. However, when you get the Master Sword, do they take 2 hits to kill as the White Sword from Z1 would do? No they take 3 hits. This because the swords' powers don't go in multiples as opposed to Z1. Instead it goes in set increments, which I won't cover in this topic.



#8 Russ

Russ

    Caelan, the Encouraging

  • Administrators
  • Location:Washington

Posted 09 April 2012 - 08:15 PM

So let me ask something. If this difference this makes is so miniscule, you have to go to LttP and fight specific enemies to even notice it, why bother? I understand it works slightly differently than the ring item, but nobody's even going to notice 95% of the time. Seems like a lot of effort to code something almost identical to a built-in feature.

#9 Orithan

Orithan

    Studying Scientist - Commission from Silvixen

  • Members
  • Location:Australia

Posted 09 April 2012 - 09:04 PM

I wanted to explore a new spin on the tunic, mainly to use in the Legend of Eldin. I plan for many of the lategame enemies to deal 3-4 (or 5, in some circumstances) whole hearts damage. That's when you will start to notice the diffrence. You also notice a diffrence when it comes to normal ZC on enemies like Crackroks and Red Wizzrobes.

But to quote myself:

QUOTE(Orin XD @ Apr 9 2012, 08:27 PM) View Post
In most circumstances, it is exactly the same as the Ring Item.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users