| Messages | ||||
| We all know about those little HUD messages and such, but, what about some fancy words that come up on the screen in front of your face? This can add to the story, or help in conveying the story =D. Now, incase you don't know how to script( i know some people don't ^_^ ) here is how you set up scripts: #include "zcommon.acs" This is the file that lets you use all the fancy zdoom function =D You need this and all the acs files to use zdoom specials. This goes at the top. Here is how you set up a script: script # type { } # can be any number, but you can only have 250 scripts. Type can be the following: (void) - executed by the player OPEN - executes when the map is loaded ENTER - executes when the player enters the level. Also, ALL scripts must be within the brackets. { and } Here is the message script: SetFont(const: "BigFont"); humessage (s: " this is a tutorial explainging\n\n", s: "how to creat message."; 0, //this is what message type it is. 0 is plain, 1 is fade out. 0, //Message ID. no cle what it is. 9, //The color. This is white there are 10 more. 1.5, //x-axis placement -0.5, //y-axis placemnet 4.0); //message hold time Wow. Lets disect! // This is a comment. This is so others, and yourself can read it. SetFont(const: "BigFont"); This sets the font so its in BIG letters. If a font isnt set, It will go to the defualt small hud message style. humessage (s: " this is a tutorial explainging\n\n", s: "how to creat message."; This is the message it self. Put \n\n at the end of it if it is longer then it longer then a line, then continue it a line below. If this happens, put a , out side of the qoutation marks rather then a ;. The final part of the message should include a ; out side of the qoutationg marks. You do not need to type correctly, ie "Hello my name is Kyle." You can type "hello my name is kyle." (my name is kyle =p) Anyway, Lets head foward. 0, //this is what message type it is. 0 is plain, 1 is fade out. 0, //Message ID. no cle what it is. 9, //The color. This is white there are 10 more. 1.5, //x-axis placement -0.5, //y-axis placemnet 4.0); //message hold time The comments tell you what stuff is =p Altough, im gonna add a few side notes. Message Type: experiment here. I have only tested 0 and 1. Message color: Here is a table of all the colros: 0 - brick 1 - tan 2 - gray 3 - green 4 - brown 5 - gold 6 - red 7 - blue 8 - orange 9 - white 10 - yellow The message Axi : Play around with this one too. You can have messages ANYWHERE on the screen, trust me =D and thats all! Enjoy =D Thx to Kappes Burr for finding, or at least pointing out "BigFont" |
||||