User Tag List

Results 1 to 9 of 9

Thread: Screen distortion script

  1. #1
    Quest Builder Anarchy_Balsac's Avatar
    Join Date
    Nov 2005
    Posts
    751
    Mentioned
    11 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    2,593
    Level
    16
    vBActivity - Bars
    Lv. Percent
    64.23%

    Screen distortion script

    I need a screen distortion script. I want it to distort everythingon the screen from colors to screen details. I want it to activate when the player gets to certain rooms and then display a given string. Can anyone write this?

  2. #2
    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,959
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.21%

    Re: Screen distortion script

    Why dot use "Underwater wave effects" for that particular screen? Then you could set up combos to animate/ pallette cycle however you wanted, and it'd be much easier than scripting all that.

    For the message:
    Code:
    //D0 - the message to display
    //D1 - the message delay
    
    
    ffc script message{
    
    	void run( int zoloft, int prozac){
    
    		Waitframes(prozac);
    		Screen->Message(zoloft);
    		Waitframe();
    	}
    }
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  3. #3
    Quest Builder Anarchy_Balsac's Avatar
    Join Date
    Nov 2005
    Posts
    751
    Mentioned
    11 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    2,593
    Level
    16
    vBActivity - Bars
    Lv. Percent
    64.23%

    Re: Screen distortion script

    Thanks, I'll have to be implementing that one tomorrow. Is it possible to hook this up to a wizzrobe's 8-way attack too? Don't need a string for that, but probably one for his death.

  4. #4
    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,959
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.21%

    Re: Screen distortion script

    This one will play once the boss is defeated.

    ...Oh and I hope you dont mind, but I also added the ability to set a new MaxHP for the boss.

    Code:
    //D0 - the message to display
    //D1 - the new HP of the boss
    
    
    ffc script message_from_beyond{
    
    	void run(int you_bastard, int hitpoints){
    
    		Waitframes(4);
    		npc bossy = Screen->LoadNPC(1);
    		bossy->HP = hitpoints;
    
    		while(true){
    		
    			if (bossy->HP > 0){ Waitframe(); }
    			
    			else {
    			Screen->Message(you_bastard);
    			Waitframe(); }
    		}
    	}
    }

    I'm suprised you haven't asked for some evil enemy boss or attack scripts yet. What's up with that?
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  5. #5
    Quest Builder Anarchy_Balsac's Avatar
    Join Date
    Nov 2005
    Posts
    751
    Mentioned
    11 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    2,593
    Level
    16
    vBActivity - Bars
    Lv. Percent
    64.23%

    Re: Screen distortion script

    Quote Originally Posted by Gleeok View Post
    This one will play once the boss is defeated.

    ...Oh and I hope you dont mind, but I also added the ability to set a new MaxHP for the boss.
    Np, thanks.

    Quote Originally Posted by Gleeok View Post
    I'm suprised you haven't asked for some evil enemy boss or attack scripts yet. What's up with that?
    I was going to, but simply making the final boss fire in 8 directions instead of one apparently sufficed. Go ahead and modify him as such in 579+ and you'll see that he moves much more eratically and is extremely difficult to deal with when you also have to use the lens to see him and avoid the 8 heart damage combos.

    I'm trying to compile your first script right now but it isn't working, I copied and pasted exactly though.

  6. #6
    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,959
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.21%

    Re: Screen distortion script

    I'm trying to compile your first script right now but it isn't working, I copied and pasted exactly though.
    Huh? Works fine for me. Note that when I first posted it I edited out a typo, I typed an e instead of an o...they're like right next to eachother...

    Also I forgot to mention that D1 is in tics. the same as timed warps.
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  7. #7
    Quest Builder Anarchy_Balsac's Avatar
    Join Date
    Nov 2005
    Posts
    751
    Mentioned
    11 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    2,593
    Level
    16
    vBActivity - Bars
    Lv. Percent
    64.23%

    Re: Screen distortion script

    Right, I used that, the only thing is I'm thinking maybe there's some code you didn't post that also needs to be encoded in(such as defining the ints and the void). I don't know how to define all that because I'm extremely new to zscripts.

  8. #8
    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,959
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.21%

    Re: Screen distortion script

    No, it's all there. Just import, compile, set scripts into slots. Then all you have to do is go to Data->FFC->set script slot #, then set Arguments...oh and change the combo! I use combo 54, 'cause it's transparent.

    Under D0 type the number of the message you want.

    Under D1 type the tics untill the message appears.
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  9. #9
    Quest Builder Anarchy_Balsac's Avatar
    Join Date
    Nov 2005
    Posts
    751
    Mentioned
    11 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    2,593
    Level
    16
    vBActivity - Bars
    Lv. Percent
    64.23%

    Re: Screen distortion script

    I'll give it a try.

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