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 / Display Variable Value on Screen?

Author
Message
D0MINIK
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 27th Mar 2013 16:22
Hi everyone,

my question: Is it possible to display the value of a variable on the screen? I\'m thinking of some kind of score system. Each time you kill an enemy, you get, uhm, say, 100 points, and I would like to show the value of the variable \'score\' on the screen.

Any help is appreciated

Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 27th Mar 2013 16:55 Edited at: 27th Mar 2013 16:55
there are a two ways I know:
First with a hud:

and the second with fpgcrawtext commands:


Corno_1


D0MINIK
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 27th Mar 2013 17:23
Cool, works well.

Thanks a lot, Corno!

Lazba
11
Years of Service
User Offline
Joined: 22nd Dec 2012
Location:
Posted: 17th May 2013 13:37
dumb question..where do i put the above two scripts..score in the DESTROY and the Hud ???

thanks
Anubis
12
Years of Service
User Offline
Joined: 6th Nov 2012
Location: Netherlands
Posted: 17th May 2013 14:28 Edited at: 17th May 2013 20:26
Place in your setuplevel.ini



Add a triggerzone (out of playzone) and make main.fpi with "hud(un)show=Usernumber"

Place the "Addvar=TestVariable 100" in your destroy script yes.

EDIT: Post changed, my initial answer was not correct. I think this is

Grts
Anubis

-+- There are only 10 types of people in the world. Those who understand binary, and those who don't -+-

[Chipset:X58 CPU:i7.950.64 GPU:HD5970 RAM:12GB DDR3 WIN:7.x64 PRO FPSC:1.20.10]
Lazba
11
Years of Service
User Offline
Joined: 22nd Dec 2012
Location:
Posted: 24th May 2013 11:23
Thanks Anubis

Login to post a reply

Server time is: 2024-11-23 13:55:59
Your offset time is: 2024-11-23 13:55:59