User Tag List

Results 1 to 5 of 5

Thread: GetCurDMapScreen() and GetCurMapScreen()

  1. #1
    Gibdo Praethus's Avatar
    Join Date
    Apr 2002
    Age
    40
    Posts
    894
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,896
    Level
    14
    vBActivity - Bars
    Lv. Percent
    50.4%

    GetCurDMapScreen() and GetCurMapScreen()

    How is the return value of these two functions calculated considering screen numbers in ZC are in hexadecimal?
    Current Quests in Progress...
    Zelda: Eya's Song

  2. #2
    Octorok
    Join Date
    May 2007
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,509
    Level
    13
    vBActivity - Bars
    Lv. Percent
    12.58%

    Re: GetCurDMapScreen() and GetCurMapScreen()

    From my understanding you should be able to use hex or dec interchangably in ZScript as DD put it
    You're under no obligation to use hex, warping to screen 0x10 is the same as warping to screen 16.

    Script warps work the same as ordinary, eg side or tile, warps. You give the dmap and a screen offset from the start of that dmap. You can't leave the 8x8 curtain because the dmap only encompasses 64 screens.

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

    Re: GetCurDMapScreen() and GetCurMapScreen()

    Right. Whether a number is hex or decimal is determined by what notation you use; it's not inherent to the function. If you want to use hex (which might be more natural for screens since they're labeled that way in the editor) just prefix your numbers with 0x, like in C.

  4. #4
    Gibdo Praethus's Avatar
    Join Date
    Apr 2002
    Age
    40
    Posts
    894
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,896
    Level
    14
    vBActivity - Bars
    Lv. Percent
    50.4%

    Re: GetCurDMapScreen() and GetCurMapScreen()

    Can you use Hex notation in the Argument fields of a FFC? I have a script that warps a player, and it uses d0 and d1 of the FFC to determine Dmap and Screen number, so the script can be usable without hardcoding the destination.
    Current Quests in Progress...
    Zelda: Eya's Song

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

    Re: GetCurDMapScreen() and GetCurMapScreen()

    No, I think those must be decimal.

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