Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[1274 (Mac OS X)]: Case Sensitivity in Scripts? LI_TRIFORCE vs LI_Triforce

1 replies · 987 views · Started 30 June 2010

I was messing with scripting when I had an error in compilation...in std.zh. Basically, it said that LI_TRIFORCE wasn't defined on line 1999. However, when I checked /Applications/Zelda Classic, I saw no issue. I had to check in /Applications/Zelda Classic/ZQuest Editor.app/Contents/Resources/ to find the issue...on line 1989.

//Returns the number of Triforce Pieces Link currently has
int NumTriforcePieces(){
int ret = 0;
for(int i=1;i<=8;i++)
if(Game->LItems[i]&LI_Triforce) ret++;
return ret;
}

&#9757; That is how it looks now.

//Returns the number of Triforce Pieces Link currently has
int NumTriforcePieces(){
int ret = 0;
for(int i=1;i<=8;i++)
if(Game->LItems[i]&LI_TRIFORCE) ret++;
return ret;
}

&#9757; That is how it should be.

Perhaps there should be consistency with the files?