Edited by Dann Woolf, 05 April 2011 - 01:14 PM.
Need help with Hot Water Music Man's NPC script.
#1
Posted 05 April 2011 - 01:12 PM
#2
Posted 05 April 2011 - 01:25 PM
Edited by MoscowModder, 05 April 2011 - 01:25 PM.
#3
Posted 05 April 2011 - 01:41 PM
Edited by Dann Woolf, 05 April 2011 - 02:00 PM.
#4
Posted 05 April 2011 - 02:38 PM
2. Yes, they set global counters. Search the wiki for "Counter" or else search for counters in std.zh.
#5
Posted 05 April 2011 - 03:39 PM
It's been a year or so since I last used Zelda Classic, so I'm a little rusty.
EDIT: And yep, I have another question: do counters use names or ID numbers? I'm not sure what the counter codes use for argument 1.
Edited by Dann Woolf, 05 April 2011 - 03:45 PM.
#6
Posted 05 April 2011 - 05:20 PM
#7
Posted 06 April 2011 - 02:27 AM
I couldn't find anything on the Shardstorm Wiki and when I looked at std.zh I couldn't understand a word of it.
#8
Posted 06 April 2011 - 03:08 AM
const int CR_LIFE = 0;
const int CR_RUPEES = 1;
const int CR_BOMBS = 2;
const int CR_ARROWS = 3;
const int CR_MAGIC = 4;
const int CR_KEYS = 5;
const int CR_SBOMBS = 6;
const int CR_SCRIPT1 = 7;
const int CR_SCRIPT2 = 8;
const int CR_SCRIPT3 = 9;
const int CR_SCRIPT4 = 10;
const int CR_SCRIPT5 = 11;
const int CR_SCRIPT6 = 12;
const int CR_SCRIPT7 = 13;
const int CR_SCRIPT8 = 14;
const int CR_SCRIPT9 = 15;
const int CR_SCRIPT10 = 16;
Counters 7 through and including 16 can be used without screwing with ZC, but they may screw up a script someone else wrote if you aren't careful. I'm not sure what happens if you try to use counters 17 or higher, but they probably don't work.
A problem you may have though is using script control codes to give items: Items given this way won't trigger item pickup scripts or have link hold up the item.
Edited by Giggidy, 06 April 2011 - 03:11 AM.
#9
Posted 06 April 2011 - 03:22 AM
Edited by Dann Woolf, 06 April 2011 - 07:05 AM.
#10
Posted 06 April 2011 - 03:40 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users