View Full Version : What are the ZScript analogies of SETA1, LOAD1 and such?
Consider the following ZASM code fragment:
SETV a1,1
SETV d0,320
WAIT WAITFRAME
SETA1 data,d0
ADDV a1,1
COMPAREV a1,5
GOTOLESS WAIT
What would be the ZScript analogy (I mean, analogue) of it?
DarkDragon
09-22-2006, 02:57 PM
If I understand the ASM correctly:
ffc script foo {
void run() {
for(int i=1; i<5; i++)
{
ffc other = Screen->LoadFFC(i);
other->Data = 320;
Waitframe();
}
}
}
There's a LoadFFC now?!
But...
screen: (accessible through the global "Screen" pointer)
float D[8];
float ComboC[176];
float ComboD[176];
float ComboF[176];
float ComboI[176];
float ComboT[176];
float ComboS[176];
int NumItems();
item LoadItem(int);
item CreateItem(int);
...and that's it!
DarkDragon
09-23-2006, 03:36 AM
Lol, yeah, that's all there was in ZScript 1.0, there have been some additions since then. They're all detailed in the various beta announcement threads. Someday (for b14 I guess) I'll post a new complete up-to-date list.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.