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

What are the ZScript analogies of SETA1, LOAD1 and such?

3 replies · 2,363 views · Started 22 September 2006

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?

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...

DarkDragon wrote:
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!

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.