User Tag List

Results 1 to 2 of 2

Thread: Disable Subscreen Item Selection

  1. #1
    Gel
    Join Date
    Jan 2018
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    45
    Level
    2
    vBActivity - Bars
    Lv. Percent
    41.17%
    Daily Activity
    0%
    Weekly Activity
    730%
    Monthly Activity
    209.93%

    Disable Subscreen Item Selection

    https://youtu.be/QKF8mC9g-t8

    I have a request for a future release of ZC/ZQuest:
    Disable the item selection completely on the subscreen.

    In my video I am showing how I re-implemented the quick-selection menus from my DoM quest into my new quest with scrolling screens.
    The problem is, as I didn't just save the item data and make an array that accesses the items and sets them myself, I used the
    if(Link->PressUp){Link->SelectAWeapon(0);}
    if(Link->PressDown){Link->SelectAWeapon(1);}
    if(Link->PressLeft){Link->SelectAWeapon(2);}
    if(Link->PressRight){Link->SelectAWeapon(3);}
    and SelectBWeapon codes to set the weapon. The problem there is that those functions rely on whether the items are on the subscreen or not, and what the positions and selection variables are from there, which automatically enables the subscreen item select on the subscreen.
    I want my subscreen to be completely blank and just say 'Game Paused.'

    Also, streamlined the save and load combodata of entire map functions so they happen with no slowdown in ZC and stays at 60fps.


    I realize that I could just write up an array to Get/Set the item equipment via those functions but if I could disable item selection on the subscreen but use the subscreen editor to set the position, and which item is selected with each direction on the d-pad there I wouldn't need to rewrite the code every time I change the available items in my quest.

  2. #2
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,148
    Mentioned
    103 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,938
    Level
    19
    vBActivity - Bars
    Lv. Percent
    97.93%
    Daily Activity
    357.14%
    Weekly Activity
    80%
    Monthly Activity
    74.49%
    Quote Originally Posted by Downloader View Post
    https://youtu.be/QKF8mC9g-t8

    I have a request for a future release of ZC/ZQuest:
    Disable the item selection completely on the subscreen.

    In my video I am showing how I re-implemented the quick-selection menus from my DoM quest into my new quest with scrolling screens.
    The problem is, as I didn't just save the item data and make an array that accesses the items and sets them myself, I used the
    if(Link->PressUp){Link->SelectAWeapon(0);}
    if(Link->PressDown){Link->SelectAWeapon(1);}
    if(Link->PressLeft){Link->SelectAWeapon(2);}
    if(Link->PressRight){Link->SelectAWeapon(3);}
    and SelectBWeapon codes to set the weapon. The problem there is that those functions rely on whether the items are on the subscreen or not, and what the positions and selection variables are from there, which automatically enables the subscreen item select on the subscreen.
    I want my subscreen to be completely blank and just say 'Game Paused.'

    Also, streamlined the save and load combodata of entire map functions so they happen with no slowdown in ZC and stays at 60fps.


    I realize that I could just write up an array to Get/Set the item equipment via those functions but if I could disable item selection on the subscreen but use the subscreen editor to set the position, and which item is selected with each direction on the d-pad there I wouldn't need to rewrite the code every time I change the available items in my quest.

    2.54 has Link->SetItemSlot(int item_id, int slot, int flags).

    It also has bool DisableActiveSubscreen , so, you can simply disable the internal subscreen, use the SetItemSlot() function, and draw your own pause screen.

    P.S. Link->Press*, and similar input functions are now available as an array, Input->Press[], and other arrays under the Input pointer.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

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
  •