User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: I can't push the block

  1. #11
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,781
    Level
    21
    vBActivity - Bars
    Lv. Percent
    73.04%
    P.S.

    Here's an update of the script, that fully-emulates the Z1 message speed and text sound:

    Code:
    import "std.zh"
    
    ///////////////////////////
    /// Fake Room Guy FFC   ///
    /// v0.3                ///
    /// 11th December, 2018 ///
    /// By: ZoriaRPG        ///
    ///////////////////////////
    
    // Instructions
    //Put a solid combo down where you want the fake guy, 
    //then add an ffc to the screen. 
    //Set the FFC combo to the combo of a guy.
    //Set its script to fakeroomguy, then as the script args:
    
    // D0: The Screen Message to show. This is mandatory.
    // D1: Override the X position of the string. This is optional.
    // D2: Override the Y position of the string. This is optional.
    // D3: Override the default (white in Classic) string colour. 
    // D4: Override the default Z1 font.
    // D5: Delay between characters output to the screen. Emulates Z1 messages. 
    
    ffc script fakeroomguy
    {
    	void run(int zqstring, int mx, int my, int mcolour, int mfont, int delay)
    	{
    		if ( !mx ) mx = 24;
    		if ( !my ) my = 32;
    		if ( !mcolour ) mcolour = 0x01;
    		if ( !mfont ) mfont = FONT_Z1;
    		if ( !delay ) delay = 8;
    		int buffer[100];
    		GetMessage(zqstring, buffer);
    		for ( int q = 99; q > 0; --q )
    		{
    			if ( buffer[q] != 0 && buffer[q] != ' ' ) break;
    			else buffer[q] = 0;
    		}
    		int msg[100]; int pos; int f; bool trail; bool done = false;
    		while(1)
    		{
    			
    			++f; ++g;
    			if ( !(f%delay) && !done ) 
    			{
    				if ( !buffer[pos] ) 
    				{
    					done = true;
    				}
    				else
    				{
    					msg[pos] = buffer[pos];
    					if ( buffer[pos] != 0 ) Game->PlaySound(18);
    					++pos;
    				}
    			}
    			
    			Screen->DrawString(1, mx, my, mfont, mcolour, -1, 0, msg, 128);
    			Waitframe();
    		}
    	}
    }
    ...and the ZASM Script

  2. #12
    Keese
    Join Date
    Nov 2018
    Posts
    39
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    292
    Level
    6
    vBActivity - Bars
    Lv. Percent
    27.79%
    Quote Originally Posted by ZoriaRPG View Post


    Send the updated quest file to me, with room and map coordinates for this puzzle, and I'll look at it.
    Thanks for the video tutorial.

    But the new problem is: in the new script is an undeclared variable g.



    My quest: v127-fixed10.qst

    The room with the "problem" you can find in M14, S27

    Required string is 82.

    And a special only for your eyes: In M8, S76 you ca find a real picture of princess Zelda.

  3. #13
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,781
    Level
    21
    vBActivity - Bars
    Lv. Percent
    73.04%
    That file is incorrect, or corrupt. The ZIP contained what reported to be an ISO file.

    Please use a host without adware, or send the file to me over Discord.

  4. #14
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,781
    Level
    21
    vBActivity - Bars
    Lv. Percent
    73.04%
    ZC Development Discord Server

    For the script, change:

    Code:
    ++f; ++g;
    to

    Code:
    ++f;
    I removed (g), but I apparently pasted a version of the script that I saved before doing that.

  5. #15
    Keese
    Join Date
    Nov 2018
    Posts
    39
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    292
    Level
    6
    vBActivity - Bars
    Lv. Percent
    27.79%
    It works perfect. Thank you very much.

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