User Tag List

Results 1 to 8 of 8

Thread: Scripting suggestions

  1. #1
    Patra Cloral's Avatar
    Join Date
    Apr 2001
    Location
    Ventura, CA
    Age
    41
    Posts
    8,589
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,223
    Level
    30
    vBActivity - Bars
    Lv. Percent
    10.53%

    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
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,027
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.41%

    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
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,850
    Level
    25
    vBActivity - Bars
    Lv. Percent
    37.58%

    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)
    vBActivity - Stats
    Points
    7,657
    Level
    26
    vBActivity - Bars
    Lv. Percent
    61.63%

    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
    41
    Posts
    9,018
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,110
    Level
    25
    vBActivity - Bars
    Lv. Percent
    78.69%
    Achievements It's over 9000!

    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
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,432
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.93%

    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?

  7. #7
    Developer
    ZC Developer
    jman2050's Avatar
    Join Date
    Jun 2001
    Location
    Do you really need to know
    Age
    37
    Posts
    3,883
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    5,708
    Level
    23
    vBActivity - Bars
    Lv. Percent
    46.04%

    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)
    vBActivity - Stats
    Points
    2,999
    Level
    17
    vBActivity - Bars
    Lv. Percent
    73.74%

    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
  •  
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