User Tag List

Results 1 to 6 of 6

Thread: Quest specific header

  1. #1
    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,145
    Level
    18
    vBActivity - Bars
    Lv. Percent
    11.22%

    Quest specific header

    In another project I am active on, the game creator is given the option to create a custom script header with constants that refer to the names they've given to things in their game.

    I think ZScript should have that option as well. Instead of putting NPC_WHATEVER, etc in std.zh, let us save a "mygame.zh" file with customized constants. This is particularly useful with the advent of new items that don't have constants.

    You don't have to include all constants in mygame.zh, but anyone that can be changed. So, DIR_UP still belongs in std.zh, but I_MAGNAGLOVES belongs in mygame.zh.

    Anyone else think this would be a good idea?
    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!

  2. #2
    Octorok Elmensajero's Avatar
    Join Date
    May 2008
    Age
    36
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    854
    Level
    10
    vBActivity - Bars
    Lv. Percent
    20.26%

    Re: Quest specific header

    Well, as far as I know you can have other header files, at least it works in 2.5b819. Now, of course you have to write it using another program such as Notepad (personally, I use jEdit), but all you have to do is save that file with whatever name, for example "mygame.zh", and then in your script call it the same way you would with std.zh (for example, import "mygame.zh"). You can import as many header files as you want, and you don't even have to import std.zh as well. Now, as far as adding a feature to write, save, and open header files inside ZQuest itself, I don't think that is really necessary, but then again I write all of my ZScripts outside of ZQuest and just import them in when I am ready.
    Looking for the newest 2.5 content? Check out CZC for quests, demos, scripts, and more!

  3. #3
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,961
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.49%

    Re: Quest specific header

    You can already do this. In my quest I have a CONST.z file which contains, you guessed it, nothing but const int for new SFX, enemies, combos, etc.
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  4. #4
    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,145
    Level
    18
    vBActivity - Bars
    Lv. Percent
    11.22%

    Re: Quest specific header

    ... I know that it's possible to have multiple headers. In fact, this is what my script files look like:

    Code:
    include "thisscript.z"
    include "thatotherscript.z"
    include "widget.z"
    My suggestion was for ZQuest to make one for you.
    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!

  5. #5
    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,853
    Level
    25
    vBActivity - Bars
    Lv. Percent
    38.14%

    Re: Quest specific header

    Make one... for you? Explain why this is necessary.

  6. #6
    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,145
    Level
    18
    vBActivity - Bars
    Lv. Percent
    11.22%

    Re: Quest specific header

    Convenience, mostly. Ease of maintenance for everybody. You don't break your quest if you shuffle around your items, and forget to update a constant (a bug that could potentially go unnoticed for quite some time).

    And, in the future, when 2.5 is released and the masses are using it, I'm sure someone is going to experiment with turfing all the existing items, and replacing them with fully scripted ones (like, say, Zodiac). Then, the std.zh constants would be useless.

    Etc.
    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!

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