User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: 1/2 Magic Upgrade Item?

  1. #1
    Lynel
    Join Date
    Jul 2005
    Posts
    1,726
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    4,605
    Level
    21
    vBActivity - Bars
    Lv. Percent
    37.84%

    1/2 Magic Upgrade Item?

    Is it possible to use a custom item to give the player the 1/2 Magic Upgrade?

  2. #2
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.73%

    Re: 1/2 Magic Upgrade Item?

    Yes

  3. #3
    Lynel
    Join Date
    Jul 2005
    Posts
    1,726
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    4,605
    Level
    21
    vBActivity - Bars
    Lv. Percent
    37.84%

    Re: 1/2 Magic Upgrade Item?

    Care to expand on that a little bit? ._.

  4. #4
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.73%

    Re: 1/2 Magic Upgrade Item?

    Give it a script which alters 'Game->Generic[GEN_MAGICDRAINRATE]' I think.

    Not that I've ever done it, but that looks like it should work to me.

  5. #5
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,110
    Level
    11
    vBActivity - Bars
    Lv. Percent
    45.41%
    Necroposting but... I wanted to tackle this one myself as I'm actually wanting to use this idea in my own quest. So let me know if this is correct.
    Code:
    import "std.zh"
    
    item script BookofMidora
    {
    	void run ()
    	{
    	Game->Generic[GEN_MAGICDRAINRATE] = 0.5
    	}
    
    }
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  6. #6
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    Close, you made a mistake with Game->Generic[] it's an integer not a float.
    Here's how it works to give you an idea.

    Code:
    const int GEN_MAGICDRAINRATE    = 1; // Link's magic usage equals n / 2.

  7. #7
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,110
    Level
    11
    vBActivity - Bars
    Lv. Percent
    45.41%
    So by that logic, a value of 2 is normal usage but a value of 1 is half? And I would use "const int" as the declaration rather than just game->generic or was that part okay? Sorry for the stupid questions, just starting to get into this stuff.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  8. #8
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    Game->Generic[GEN_MAGICDRAINRATE ]

    const int GEN_MAGICDRAINRATE is already declared and found in std.zh

  9. #9
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,110
    Level
    11
    vBActivity - Bars
    Lv. Percent
    45.41%
    Ah! That makes sense. Probably need to glance over std.zh and see what all is in there so I can avoid looking like a total n00b in the future, lol.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  10. #10
    Username Kaiser SUCCESSOR's Avatar
    Join Date
    Jul 2000
    Location
    Winning.
    Age
    37
    Posts
    4,436
    Mentioned
    152 Post(s)
    Tagged
    7 Thread(s)
    vBActivity - Stats
    Points
    10,563
    Level
    30
    vBActivity - Bars
    Lv. Percent
    52.05%
    Hmmm. Has someone tested fraction with that? Is it confirmed to be truncated?

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