Okay, so, people have explained to me how to use arrays about a billion times and I still just don't get it, so here's what I need:
Check if Link has I_ADULTLINK or I_CHILDLINK (item IDs 143 and 144, respectively)
Record items in Link's inventory as they're collected, as well as the value of CR_ARROWS to separate arrays, one for child Link and one for adult Link.
Remove child items and reset CR_ARROWS if Link->Item[I_ADULTLINK] == true
Add items from the adult array and set the value of CR_ARROWS to what is stored in the adult array if Link->Item[I_ADULTLINK] == true
Remove adult items and reset CR_ARROWS if Link->Item[I_CHILDLINK] == true
Add items from the child array and set the value of CR_ARROWS to what is stored in the child array if Link->Item[I_CHILDLINK] == true
I'm about 95% certain I can handle the character switching aspect, myself since I plan to recycle the script I used in another quest.
All of the other items are shared between the two, so they won't need to be part of the script (The gold ring is placed via item override, the red ring will be used separately, below).
EDIT: I could just use dummy items like I did for my last character switching script, but it uses a LOT of item slots, and it's pretty messy; plus I wouldn't be able to keep track of the arrow counter so that I don't have to script a separate bow and arrow for adult Link. An array is just much cleaner.
As for the other request, I'm using Mero's hot room script:
And I need it to give Link I_RING2 if he is in a hot room and take it away if he's not, but I'm not sure where to add the Link->Item[I_RING2] = true; and Link->Item[I_RING2] = false; lines, so it's not really a request, I just need a little advice
EDIT: It occurs to me I forgot to say please. That wasn't very polite of me.
Edited by Binx, 20 April 2017 - 09:48 PM.