User Tag List

Results 1 to 2 of 2

Thread: Getting Link's Position in a FFC Script

  1. #1
    Wizrobe C-Dawg's Avatar
    Join Date
    Jan 2002
    Posts
    4,205
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,612
    Level
    24
    vBActivity - Bars
    Lv. Percent
    100%

    Getting Link's Position in a FFC Script

    According to the documentation, float X is the X position of an FFC, and int X is the X position of Link. How do you get the position of Link within a script attached to an FFC?

    My goal is aquire Link's position so that the FFC can move relative to Link. If I can't get Link's position directly from an FFC script, how else can I do that?

    EDIT: It does not appear that the method used to edit ZScript is obvious. I've looked at the FFC Scripts in Revolution Quest and the Technical Documentation, and I'm not making much sense of it. Clearly there are functions (or whatever) called by Revolution's FFC Scripts that are not documented in DarkDragon's thread. For instance, take this Code attached to a trap that follows Link horizontally:

    WAITFRAME
    COMPARER x,lx ; find Link
    GOTOLESS 6; block him horizontally
    SUBV x,1
    GOTO 1
    ADDV x,1
    GOTO 1
    QUIT

    I don't see WAITFRAME, COMPARER, GOTOLESS, etc in the technical manual. It looks like assembly, but I'm not seeing any way for someone out of the loop to figure out how to program this.

  2. #2
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,433
    Level
    24
    vBActivity - Bars
    Lv. Percent
    70.17%

    Re: Getting Link's Position in a FFC Script

    There are two different languages: ZScript and ZASM. The latter was implemented one beta earlier, so it's all that's used in the oldest scripts.

    The basics of ZScript are covered in this post. That's for an older beta, though. A couple of names have changed since then, and there are a few more keywords and operators (+= etc., break, continue, possibly a few more). The functions and variables are mostly covered in this post; for the constants, look at std.zh.

    Anyway, to get and set Link's position, use Link->X and Link->Y; for the FFC, use this->X and this->Y.

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