User Tag List

Results 1 to 4 of 4

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

  1. #1
    Developer
    ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,851
    Level
    25
    vBActivity - Bars
    Lv. Percent
    37.71%

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

    Consider the following ZASM code fragment:
    Code:
     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?

  2. #2
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,028
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.51%

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

    If I understand the ASM correctly:

    Code:
    ffc script foo {
       void run() {
          for(int i=1; i<5; i++)
          {
             ffc other = Screen->LoadFFC(i);
             other->Data = 320;
             Waitframe();
          }
       }
    }

  3. #3
    Developer
    ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,851
    Level
    25
    vBActivity - Bars
    Lv. Percent
    37.71%

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

    There's a LoadFFC now?!

    But...

    Quote Originally Posted by DarkDragon View Post
    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!

  4. #4
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,028
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.51%

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

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social