Need some scripts?

View previous topic View next topic Go down

Need some scripts?

Post by Spirit Soldier on Wed Nov 24, 2010 11:28 pm

Sometimes its helpful to learn some scripts for your maps, such as automatic teleports, how to create auto beginning elevators and whatnot. This topic is designed for people who could use these scripts to give their map an extra edge.

Sample
Here is the code for sector colours (experiment with them).

Code:
#include "zcommon.acs"
script 1 open
{
Sector_setcolor (const:10, 250, 250, 0);
}

In order, the numbers mean: sector tag (you must tag the sector), amount of red, green, blue. Experiment with different degrees of each for the right version. 250 is the max per colour.

Spirit Soldier

Posts : 301
Reputation : 1
Join date : 2010-07-18

Back to top Go down

Re: Need some scripts?

Post by Kamaitachi on Wed Nov 24, 2010 11:42 pm

Since this has to do with scripts, I guess I could throw in my two cents.

Here's how to make a script glow a certain color. The scripts are freaking huge, so open at your own risk.

Blue:
Code:
Script # OPEN

{
Sector_SetColor (1, 255, 255, 255, 0);
Delay(1);
Sector_SetColor (1, 245, 245, 255, 0);
Delay(1);
Sector_SetColor (1, 235, 235, 255, 0);
Delay(1);
Sector_SetColor (1, 225, 225, 255, 0);
Delay(1);
Sector_SetColor (1, 215, 215, 255, 0);
Delay(1);
Sector_SetColor (1, 205, 205, 255, 0);
Delay(1);
Sector_SetColor (1, 195, 195, 255, 0);
Delay(1);
Sector_SetColor (1, 185, 185, 255, 0);
Delay(1);
Sector_SetColor (1, 175, 175, 255, 0);
Delay(1);
Sector_SetColor (1, 165, 165, 255, 0);
Delay(1);
Sector_SetColor (1, 155, 155, 255, 0);
Delay(1);
Sector_SetColor (1, 145, 145, 255, 0);
Delay(1);
Sector_SetColor (1, 135, 135, 255, 0);
Delay(1);
Sector_SetColor (1, 125, 125, 255, 0);
Delay(1);
Sector_SetColor (1, 115, 115, 255, 0);
Delay(1);
Sector_SetColor (1, 105, 105, 255, 0);
Delay(1);
Sector_SetColor (1, 95, 95, 255, 0);
Delay(1);
Sector_SetColor (1, 85, 85, 255, 0);
Delay(1);
Sector_SetColor (1, 75, 75, 255, 0);
Delay(1);
Sector_SetColor (1, 65, 65, 255, 0);
Delay(1);
Sector_SetColor (1, 55, 55, 255, 0);
Delay(1);
Sector_SetColor (1, 45, 45, 255, 0);
Delay(1);
Sector_SetColor (1, 35, 35, 255, 0);
Delay(1);
Sector_SetColor (1, 25, 25, 255, 0);
Delay(1);
Sector_SetColor (1, 15, 15, 255, 0);
Delay(1);
Sector_SetColor (1, 5, 5, 255, 0);
Delay(1);
Sector_SetColor (1, 5, 5, 255, 0);
Delay(1);
Sector_SetColor (1, 15, 15, 255, 0);
Delay(1);
Sector_SetColor (1, 25, 25, 255, 0);
Delay(1);
Sector_SetColor (1, 35, 35, 255, 0);
Delay(1);
Sector_SetColor (1, 45, 45, 255, 0);
Delay(1);
Sector_SetColor (1, 55, 55, 255, 0);
Delay(1);
Sector_SetColor (1, 65, 65, 255, 0);
Delay(1);
Sector_SetColor (1, 75, 75, 255, 0);
Delay(1);
Sector_SetColor (1, 85, 85, 255, 0);
Delay(1);
Sector_SetColor (1, 95, 95, 255, 0);
Delay(1);
Sector_SetColor (1, 105, 105, 255, 0);
Delay(1);
Sector_SetColor (1, 115, 115, 255, 0);
Delay(1);
Sector_SetColor (1, 125, 125, 255, 0);
Delay(1);
Sector_SetColor (1, 135, 135, 255, 0);
Delay(1);
Sector_SetColor (1, 145, 145, 255, 0);
Delay(1);
Sector_SetColor (1, 155, 155, 255, 0);
Delay(1);
Sector_SetColor (1, 165, 165, 255, 0);
Delay(1);
Sector_SetColor (1, 175, 175, 255, 0);
Delay(1);
Sector_SetColor (1, 185, 185, 255, 0);
Delay(1);
Sector_SetColor (1, 195, 195, 255, 0);
Delay(1);
Sector_SetColor (1, 205, 205, 255, 0);
Delay(1);
Sector_SetColor (1, 215, 215, 255, 0);
Delay(1);
Sector_SetColor (1, 225, 225, 255, 0);
Delay(1);
Sector_SetColor (1, 235, 235, 255, 0);
Delay(1);
Sector_SetColor (1, 245, 245, 255, 0);
Delay(1);
Restart;
}

Red:
Code:
Script # OPEN

{
Sector_SetColor (2, 255, 255, 255, 0);
Delay(1);
Sector_SetColor (2, 255, 245, 245, 0);
Delay(1);
Sector_SetColor (2, 255, 235, 235, 0);
Delay(1);
Sector_SetColor (2, 255, 225, 225, 0);
Delay(1);
Sector_SetColor (2, 255, 215, 215, 0);
Delay(1);
Sector_SetColor (2, 255, 205, 205, 0);
Delay(1);
Sector_SetColor (2, 255, 195, 195, 0);
Delay(1);
Sector_SetColor (2, 255, 185, 185, 0);
Delay(1);
Sector_SetColor (2, 255, 175, 175, 0);
Delay(1);
Sector_SetColor (2, 255, 165, 165, 0);
Delay(1);
Sector_SetColor (2, 255, 155, 155, 0);
Delay(1);
Sector_SetColor (2, 255, 145, 145, 0);
Delay(1);
Sector_SetColor (2, 255, 135, 135, 0);
Delay(1);
Sector_SetColor (2, 255, 125, 125, 0);
Delay(1);
Sector_SetColor (2, 255, 115, 115, 0);
Delay(1);
Sector_SetColor (2, 255, 105, 105, 0);
Delay(1);
Sector_SetColor (2, 255, 95, 95, 0);
Delay(1);
Sector_SetColor (2, 255, 85, 85, 0);
Delay(1);
Sector_SetColor (2, 255, 75, 75, 0);
Delay(1);
Sector_SetColor (2, 255, 65, 65, 0);
Delay(1);
Sector_SetColor (2, 255, 55, 55, 0);
Delay(1);
Sector_SetColor (2, 255, 45, 45, 0);
Delay(1);
Sector_SetColor (2, 255, 35, 35, 0);
Delay(1);
Sector_SetColor (2, 255, 25, 25, 0);
Delay(1);
Sector_SetColor (2, 255, 15, 15, 0);
Delay(1);
Sector_SetColor (2, 255, 5, 5, 0);
Delay(1);
Sector_SetColor (2, 255, 15, 15, 0);
Delay(1);
Sector_SetColor (2, 255, 25, 25, 0);
Delay(1);
Sector_SetColor (2, 255, 35, 35, 0);
Delay(1);
Sector_SetColor (2, 255, 45, 45, 0);
Delay(1);
Sector_SetColor (2, 255, 55, 55, 0);
Delay(1);
Sector_SetColor (2, 255, 65, 65, 0);
Delay(1);
Sector_SetColor (2, 255, 75, 75, 0);
Delay(1);
Sector_SetColor (2, 255, 85, 85, 0);
Delay(1);
Sector_SetColor (2, 255, 95, 95, 0);
Delay(1);
Sector_SetColor (2, 255, 105, 105, 0);
Delay(1);
Sector_SetColor (2, 255, 115, 115, 0);
Delay(1);
Sector_SetColor (2, 255, 125, 125, 0);
Delay(1);
Sector_SetColor (2, 255, 135, 135, 0);
Delay(1);
Sector_SetColor (2, 255, 145, 145, 0);
Delay(1);
Sector_SetColor (2, 255, 155, 155, 0);
Delay(1);
Sector_SetColor (2, 255, 165, 165, 0);
Delay(1);
Sector_SetColor (2, 255, 175, 175, 0);
Delay(1);
Sector_SetColor (2, 255, 185, 185, 0);
Delay(1);
Sector_SetColor (2, 255, 195, 195, 0);
Delay(1);
Sector_SetColor (2, 255, 205, 205, 0);
Delay(1);
Sector_SetColor (2, 255, 215, 215, 0);
Delay(1);
Sector_SetColor (2, 255, 225, 225, 0);
Delay(1);
Sector_SetColor (2, 255, 235, 235, 0);
Delay(1);
Sector_SetColor (2, 255, 245, 245, 0);
Delay(1);
Restart;

Kamaitachi

Posts : 7
Reputation : 0
Join date : 2010-11-20
Age : 26
Location : ooter spae

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum