Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / okey, some Questions!

Author
Message
Quik
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location: Equestria!
Posted: 17th Jul 2008 07:25
Anyway to get a text appear somewhere? when u like walk in a room or somethin,,? how?

Can you get the text in the bottom of the screen?

Colour it?

Can you make a text (with like black backround?) appear when you start the game? How? Never done any scripting before, would be nice with some kinnda "Step to Step" or sometmhing, thanks anyway! off to work so seeya

i Wonder also if you can get em to work for both X10 and original? cheers

Quik, Quiker than most
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 17th Jul 2008 15:34 Edited at: 17th Jul 2008 22:09
all that you want is in the FPSC hint's and tips guide at the top of the chat board and in this thread.
-EDIT-link deleted(lapse of thought there sorry) but look at Hybrid's tut later ok? you really need to learn to script.

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 17th Jul 2008 19:10
Der 13, you should not post a link, help him or her learn scripting. This is a helping board, not alink board. I will be nack later to give you a complete tutorial.

Quik
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location: Equestria!
Posted: 17th Jul 2008 22:23
thanks Hybrid^^ Nice of you=) (iam completly new to this forums, therefore it takes LONG time for my posts to appear)

Quik, Quiker than most
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 18th Jul 2008 00:31 Edited at: 18th Jul 2008 00:36
Ok, yes, the hits and tips guide is very valuable, but to start, lets begin with the HUDs. You see, the way that HUDS are shown is that there are immages in the .dds or tga format that a script calls up on the screen. You see, in order to change the color, you need to change the color in the image itself. This is relatively simple with DXTbmp. Google it. It is a very nice texture maker. A .dds or .tga texture has two components: your picture and the alpha mrp. The alphamap is a grayscale picture that sets the transparency for the texture. White is fully visable while black is not at all. Simple. In short, if you want to change the color, you need to change the actual image.

Now, for the scripting aspect of your HUD. I will not dive in to the complicated world of scripting too far. The script looks something like this:



Now let's look at each part of this...

:state=0: this is the initial state of any script. That state is an variab;e used to control the script's stages. the : after it says that the actions follow.

State=X,conditons,conditions:actions,actions

A comma seperates conditions and a colon seperates the actions from the conditions. Simple. However, since there are no conditions for the start script, only a colon is needed.

The rest of state 0 is for setting up the hud. Hudreset, resets the HUD information. The the x and y coordinates of the hud are told, showing the hud where to show up on the screen. Then we tell the script where to actualy find the image file that makes up the hud. Then, we give it a name. Finally, we hide the hud until we call it again later. Then, we move on to the next state.

State 1 has a condition called plrwithinzone=1. When this script is given to a trigger zone, this script will work. When the player is within the zone "=1", then we show the hud and instantly fade it away. Hopefully this helps out.

I hope that you do, however, look at the manual and the guide. They have invaluable information for any budding scripters out there.

Good Luck.

Login to post a reply

Server time is: 2024-11-24 10:52:12
Your offset time is: 2024-11-24 10:52:12