User Tag List

Results 1 to 2 of 2

Thread: Disable Subscreen Item Selection

  1. #1
    Gel Just registered
    Join Date
    Jan 2018
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    67
    Level
    2
    vBActivity - Bars
    Lv. Percent
    78%
    Daily Activity
    0%
    Weekly Activity
    5.02%
    Monthly Activity
    3.4%

    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,211
    Mentioned
    106 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,083
    Level
    20
    vBActivity - Bars
    Lv. Percent
    28.89%
    Daily Activity
    0%
    Weekly Activity
    48.03%
    Monthly Activity
    79.48%
    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
  •  
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