User Tag List

Results 1 to 6 of 6

Thread: Strings in ZScript...?

  1. #1
    Keese ScaryBinary's Avatar
    Join Date
    Dec 2006
    Age
    49
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    916
    Level
    10
    vBActivity - Bars
    Lv. Percent
    51.79%

    Strings in ZScript...?

    I saw a mysterious reference to strings and arrays in the release notes for one of the last few builds (776/777), and decided to experiment a bit. I got the following to compile:
    Code:
    ffc script StringTest{
    
      void run(){
        int myChar = 'a';  // A single character.
        int myUserName[11] = "ScaryBinary";  // An array of characters, proper length.
        int myBadExample[5] = "Overflow?";  // An array of characters, wrong length.
    
        // Dump some stuff to the log file.
        Trace(myChar);
        Trace(myUserName[0]);
        Trace(myBadExample[0]);
      }
    
    }
    The script dumped the following to the log file:
    97.0000
    83.0000
    79.0000

    The numbers dumped to the log file are the ASCII codes for the individual characters in the arrays. However, myBadExample[4] returned the question mark (I was expecting "f"...).

    At any rate, I couldn't do much else (anything, actually) with the strings/character arrays...will we be getting some special string functions soon ....or are there some secret ones implemented already? Ones that might let us draw whatever text we want, where we want on the screen? :giggle:

  2. #2
    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,709
    Level
    23
    vBActivity - Bars
    Lv. Percent
    46.18%

    Re: Strings in ZScript...?

    We're getting there. The string support in ZScript is very preliminary, and its only real use right now is to provide some sort of string data storage that you can screw around with on your own to do crap.
    AGN's Resident Zelda Classic Developer and Sonic the Hedgehog Fanboy

  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: Strings in ZScript...?

    Which we appreciate. Still, it's not too much of a pain in the ass to use the regular string editor in Zquest for now.

  4. #4
    Octorok
    Join Date
    Jan 2008
    Age
    32
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    939
    Level
    10
    vBActivity - Bars
    Lv. Percent
    63.72%

    Re: Strings in ZScript...?

    Bump.*

    Is this going to be a Zelda Classic 2.5 scripting feature? It would be quite useful...

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

    Re: Strings in ZScript...?

    I have heard absolutely nothing since I tried to do stuff with them, and failed horribly.
    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!

  6. #6
    Octorok
    Join Date
    Jan 2008
    Age
    32
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    939
    Level
    10
    vBActivity - Bars
    Lv. Percent
    63.72%

    Re: Strings in ZScript...?

    I thought of returning the hour in Zelda Classic with a sign ffc script but it's impossible without making strings... Unless making 24 different strings, and it doesn't even include the minutes. O_0

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