User Tag List

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

Thread: Very Simple Request.

  1. #1
    I shall exalt myself over all Armagedddon Games bigjoe's Avatar
    Join Date
    Apr 2000
    Age
    39
    Posts
    5,621
    Mentioned
    87 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,573
    Level
    24
    vBActivity - Bars
    Lv. Percent
    93.52%

    Very Simple Request.

    In the quest I'm working on, you collect three Spiritual Stones instead of a triforce.





    What I would like, is a script that pit warps you to another screen if you happen to have all three of them. I dont know if this will help, but the item names were originally z200, z201, and z202. Their item families are the same number.

    I've tried to script it myself, but nothing I've done has the desired effect.


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

    Re: Very Simple Request.

    ffc script custom_warp
    {
    void run()
    {
    while(true)
    {
    if (Link->Item[200] && Link->Item[201] && Link->Item[202])
    {
    Link->PitWarp(dmap,screen);
    }
    Waitframe();
    }
    }
    }

    You would have to put the ffc on the screen you want this to happen at.
    this is untested just off the top of my head, but give it a try and let me know if it works for you

  3. #3
    Wizrobe C-Dawg's Avatar
    Join Date
    Jan 2002
    Posts
    4,205
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,611
    Level
    24
    vBActivity - Bars
    Lv. Percent
    99.9%

    Re: Very Simple Request.

    Hah, someone else asked for exactly this script in Z.Suggestions yesterday.

    Yea, checking link's inventory is probably the easiest thing to script. You'd probably want to add a bit to that script so it only executes when Link steps onto the FFC, though. So the warp can be placed. As is, it will activate as soon as he goes onto the screen.

  4. #4
    I shall exalt myself over all Armagedddon Games bigjoe's Avatar
    Join Date
    Apr 2000
    Age
    39
    Posts
    5,621
    Mentioned
    87 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,573
    Level
    24
    vBActivity - Bars
    Lv. Percent
    93.52%

    Re: Very Simple Request.

    Quote Originally Posted by ShadowMancer View Post
    ffc script custom_warp
    {
    void run()
    {
    while(true)
    {
    if (Link->Item[200] && Link->Item[201] && Link->Item[202])
    {

    Link->PitWarp(dmap,screen)
    }
    }
    }
    }

    You would have to put the ffc on the screen you want this to happen at.
    this is untested just off the top of my head, but give it a try and let me know if it works for you
    All that seems to do is freeze the game even with the correction of adding a semicolon after Link->PitWarp()

    EDIT: Does the same thing whether or not you have the items.

    Ah, well, thanks for trying.


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

    Re: Very Simple Request.

    ah crap. I forgot you need to put a Waitframe(); in the while loop somewere otherwise as you said it will just freeze the game. sorry

  6. #6
    I shall exalt myself over all Armagedddon Games bigjoe's Avatar
    Join Date
    Apr 2000
    Age
    39
    Posts
    5,621
    Mentioned
    87 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,573
    Level
    24
    vBActivity - Bars
    Lv. Percent
    93.52%

    Re: Very Simple Request.

    That fixed it. Thanks! With a system like this in place, a person could easily replace triforce peices as their main collectible, and potentially have as many collectibles as they wish!


  7. #7
    Wizrobe The_Amaster's Avatar
    Join Date
    Dec 2005
    Location
    St. Mystere
    Age
    32
    Posts
    3,803
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,810
    Level
    28
    vBActivity - Bars
    Lv. Percent
    26.09%

    Re: Very Simple Request.

    Sweet. I can use this. This should be moved into the Showcase. I mean, it's simple, but when 2.5 comes, it's the kind of utility script that everyones going to use.

  8. #8
    Wizrobe C-Dawg's Avatar
    Join Date
    Jan 2002
    Posts
    4,205
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,611
    Level
    24
    vBActivity - Bars
    Lv. Percent
    99.9%

    Re: Very Simple Request.

    Quote Originally Posted by Amaster42 View Post
    Sweet. I can use this. This should be moved into the Showcase. I mean, it's simple, but when 2.5 comes, it's the kind of utility script that everyones going to use.
    Well, before you move it to showcase, change it so that the player can specify the items needed to trigger the warp in the FFC Data fields at least.

  9. #9
    Wizrobe The_Amaster's Avatar
    Join Date
    Dec 2005
    Location
    St. Mystere
    Age
    32
    Posts
    3,803
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,810
    Level
    28
    vBActivity - Bars
    Lv. Percent
    26.09%

    Re: Very Simple Request.

    Isn't that what:
    if (Link->Item[200] && Link->Item[201] && Link->Item[202])
    is for?

  10. #10
    Wizrobe C-Dawg's Avatar
    Join Date
    Jan 2002
    Posts
    4,205
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,611
    Level
    24
    vBActivity - Bars
    Lv. Percent
    99.9%

    Re: Very Simple Request.

    What? No. That snippet hard-codes certain item values into the script. Better to do this:

    void run (int item1; int item2; int item3){

    if(Link->Item[item1} && Link->Item[item2} && Link->Item[item3]){

    stuff

    }

    }

    Plus, if you're activating regardless of link's location, why use Waitframe? It'll execute as soon as he's on the screen anyway.

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