User Tag List

Results 1 to 8 of 8
  1. #1
    Patra Cloral's Avatar

    Join Date
    Apr 2001
    Location
    Ventura, CA
    Age
    31
    Posts
    8,589
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scripting suggestions

    It would probably be helpful to the developers to get some ideas of scripting features that would be useful for us. So I'm starting the list. Add on as you see fit.

    • method: freezeAction()
      Causes Link and the enemies to freeze in place. This would be used when you want to pause to allow some action to happen, without affecting anything else going on in the room. For instance, this could be used to allow a wall to slowly slide into place when a switch is triggered. Check out the upper right cornder of the first dungeon in the dark world of LttP to see a good example of this - when you hit the statue with an arrow, Link and the trap freeze in place while the wall takes some 20-30 seconds to reach it's final destination.
    • method: unFreezeAction()
      The reverse, this starts the action up again.
    • method: Link->Hide()
      Turns Link invisible.
    • method: Link->Show()
      Makes Link visible again.
    • method: Link->Freeze()
      Link stops in place, will not respond to user input.
    • method: Link->UnFreeze()
      Link responds to input again.
    • method: Spawn(type, x, y)
      Spawns an enemy of type type at location (x, y). A very useful action this would be.

  2. #2
    Administrator DarkDragon's Avatar

    Join Date
    Oct 2001
    Posts
    5,845
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Scripting suggestions

    Freeze and Unfreeze are already implemented, in the form of the boolean Link::InputsEnabled.

  3. #3
    Developer ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    26
    Posts
    2,777
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Scripting suggestions

    I approve of the Hide and Show functions.
    Though Spawn should probably be called MkEnemy or something.

  4. #4
    Robots in Disguise ZC Developer Dark Nation's Avatar

    Join Date
    Mar 2000
    Posts
    5,401
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scripting suggestions

    Actually, InputsEnabled has been removed. As well as the ForcedA, ForcedB, ForcedUp, etc. variables and the GetA, GetB, GetUp, etc variables. They have been replaced with the InputA, InputB, InputUp, etc. variables. This way you can read and intercept user control on the script level from one set of variables. if you want to disable user input, just run these lines:
    Code:
    SETV inputa,0
    SETV inputb,0
    SETV inputup,0
    SETV inputdown,0
    SETV inputleft,0
    SETV inputright,0
    SETV inputstart,0
    If you only want to disable the sword (without using the bubbles), just do this:
    Code:
    SETV inputa,0
    You can also cause Link to do things. If you want him to walk left 50 steps, just use the input disabling code above, but change the inputleft line to:

    Code:
    SETV inputleft,1

  5. #5
    Patra Warlock's Avatar

    Join Date
    Feb 2000
    Location
    Eternal Nothingness
    Age
    30
    Posts
    9,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scripting suggestions

    Does that work for everything though, or just Link? I like Cloral's freezeAction() function - it would be nice to have one that just froze everything including enemies. Then you could do, say, a *real* message box or something.

  6. #6
    Is this the end? ZC Developer Saffith's Avatar

    Join Date
    Jan 2001
    Age
    30
    Posts
    2,786
    Mentioned
    13 Post(s)
    Tagged
    1 Thread(s)

    Re: Scripting suggestions

    Quote Originally Posted by Dark Nation
    If you only want to disable the sword (without using the bubbles), just do this:
    Code:
    SETV inputa,0
    You can also cause Link to do things. If you want him to walk left 50 steps, just use the input disabling code above, but change the inputleft line to:

    Code:
    SETV inputleft,1
    If I'm reading this correctly, you're saying that setting an input variable to 0 disables it and if setting it to 1 forces it?
    If that's the case, what do you set it to to restore it to normal?
    [téknolŕiz]

    Recent script updates:
    2013-05-11: ghost.zh updated to 2.6.2
    2013-05-01: ffcscript.zh updated to 1.1.0
    Spoiler: show
    ffcscript.zh 1.1.0 - Updated 2013-05-01
    ghost.zh 2.6.2 - Updated 2013-05-11

    Armos Knights - Updated 2013-02-18
    Armos (LttP) - Updated 2013-02-19
    Big Tektite - Updated 2013-03-01
    Buzz Blob - Updated 2012-12-11
    Chaser - Updated 2012-12-11
    Goriya (LttP) - Updated 2012-12-11
    Homing fireball shooter - Updated 2012-12-11
    Popo - Updated 2012-12-11
    Spume - Updated 2012-12-11
    Twin Amoeba - Updated 2012-12-11
    Wall bouncer - Updated 2012-12-11

  7. #7
    Developer ZC Developer jman2050's Avatar

    Join Date
    Jun 2001
    Location
    Do you really need to know
    Age
    26
    Posts
    3,870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scripting suggestions

    the thing is, according to DN, the forcing and the disabling only works for one frame.
    AGN's Resident Zelda Classic Developer and Sonic the Hedgehog Fanboy

  8. #8
    Lynel

    Join Date
    Mar 2005
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Scripting suggestions

    And again: What about Select? Remember, map button? Not that I've got any terribly useful ideas for what to do with an extra button, but, SOMEBODY might.

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
  •