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 / Changing text on game screens

Author
Message
velez42
13
Years of Service
User Offline
Joined: 16th Dec 2010
Location:
Posted: 18th Jan 2011 01:01
I need to present false feedback to my players telling them that they scored in the __% of all players who have played my game (It is for a study, I'm not just trying to mess with people ). I know someone who may be able to script for me but I'm curious about the best way to script this.

I was thinking about changing the gamecomplete screen and adding the text I need in the edittext fpi file.

I was also thinking about creating my own background and using this as my gamecomplete screen.

Besides not knowing which is the best way to do this, I have another issue. On this gamecomplete screen where I give people false feedback I need to show them how many kills they got so they are more likely to believe the feedback.

Therefore, is it possible to script the number of kills someone got into a gamecomplete or gameover screen?

Any suggestions on which is the best way to get this done would be appreciated. Also I know I'm not suppose to ask for scripts on here but any help in that area would be nice as well
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Jan 2011 02:59
Well, since global variables carry over through levels (and throughout the game, until being shut down), you can increase a global variable's value by 1 in the death script of each of your enemies.

As for the gamecomplete screen, there's a script for that specific screen in the same folder as the setuplevel.fpi script. Change that to show the text you want (and display the kills using the same global variable)


Hope that helps out.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 18th Jan 2011 06:56
If you have multiple levels will this screen show between each level?

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Jan 2011 23:19
If it is to show between levels, you'll want to alter the loading screen script, which can be found in the same location as the gamecomplete script.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
velez42
13
Years of Service
User Offline
Joined: 16th Dec 2010
Location:
Posted: 19th Jan 2011 01:45
THANKS!! Now I have seen some people recommend Nickydude's guide for learning some basics of scripting so should I check that out for learning how to solve my particular problem or do you have something more specific that would be useful? I'm willing to learn, especially since I will using this program for future studies. Thanks Again!
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 19th Jan 2011 06:58
@velez42: The guide is a great tool. It has some really useful tutorials and it also has a large section on pre-made scrpits to give you some inspiration for your own scripts - the guide may not be able to help you with specific problems, but it may show you some examples of where a similar actions/condition is used.

@Plystire: Thanks.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
velez42
13
Years of Service
User Offline
Joined: 16th Dec 2010
Location:
Posted: 19th Jan 2011 19:13 Edited at: 19th Jan 2011 19:16
/
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 20th Jan 2011 06:55
You should have the guide as part of the FPSC install. Look in the "Docs" folder.

There is also a thread on the forum:
http://forum.thegamecreators.com/?m=forum_view&t=131868&b=21Enjoy

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
velez42
13
Years of Service
User Offline
Joined: 16th Dec 2010
Location:
Posted: 20th Jan 2011 20:22
Can you direct me to where I could find a list of global variables? I want to show the total number of kills a player has received at the end of his game. I'm not sure if it's feasible to create a second game screen to display this information, or if there's a way I can incorporate it into the endgame jpg, but I'd like to try. Many thanks.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 21st Jan 2011 06:38
There isn't really a list as such, the global variables are just defined as 1-99. You have to keep a list of what variable you are using for what so that you don't use the same variable for two things.

To display the number of kills at the end game, you may be able to use fpgcrawtext or adapt another variable display script into the end game script as Plystire has suggested above.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]

Login to post a reply

Server time is: 2024-11-24 13:45:24
Your offset time is: 2024-11-24 13:45:24