User Tag List

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

Thread: [Request] hand grenade

  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.82%

    [Request] hand grenade

    I have another request for people to ignore…

    A bomb that Link "throws" instead of setting. So I need a script that makes Link throw the bomb two tiles in front of him (like the candle flame?) then it explodes instantly.

  2. #2
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,142
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.51%
    *claims* This shouldn't be too difficult.
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

  3. #3
    &&
    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.71%

    Re: [Request] hand grenade

    http://users.sephiroth.ws/Migokalle/the_dead_forest.zip

    hehehe....
    Works best in 819.

    I can organise the code from that to work in a more Zelda game if you want?

  4. #4
    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.82%

    Re: [Request] hand grenade

    EDIT: I tried that quest in the newest build, then 819 and I see the items aren't working properly in the new one.

    But that grenade is close to what I want. I actually want it to explode as soon as it hits the ground.

  5. #5
    &&
    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.71%

    Re: [Request] hand grenade

    I know it won't work in the new build.
    _L_ change the way item speeds work.

    Explode on impact is fine yeah, I can do that.

  6. #6
    &&
    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.71%

  7. #7
    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.82%

    Re: [Request] hand grenade

    I'm getting an error compiling it.

  8. #8
    &&
    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.71%

    Re: [Request] hand grenade

    Make sure you have import "std.zh" in your .z file.

  9. #9
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,142
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.51%

    Re: [Request] hand grenade

    A suggestion:
    Code:
                for(int i=1;i<=Screen->NumLWeapons();i++){
                    Grenade = Screen->LoadLWeapon(i);
                    if(Grenade->ID != LW_SCRIPT1) continue;
                    Found = true;
                }
    I would write this like:

    Code:
                for(int i=1;i<=Screen->NumLWeapons();i++){
                    Grenade = Screen->LoadLWeapon(i);
                    if(Grenade->ID == LW_SCRIPT1) {
                            Found = true;
                            break;
                    }
                }
    So that it stops once it finds the grenade, rather than continuing to check every single lweapon on the screen (not that big of a problem, but it makes more sense this way)

    Other than that, this script looks pretty good (especially since it uses the proper global-script form!)
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

  10. #10
    &&
    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.71%

    Re: [Request] hand grenade

    Mm, I had a reason at the time for not writing it like that. I can't remember what it was now though.

    Your method of writing global scripts is definately much better

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