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 / Calculate a wincode and show it in the game

Author
Message
garnisoft
17
Years of Service
User Offline
Joined: 11th May 2007
Location:
Posted: 27th Feb 2009 19:27
Hello,

In my website they can get a GameCode. (its generate with a formula)
With this code they can start a game. (in fpsc)
Thus before the game begins the code must be entered in some menu.
When they win the game, the game shows a WinCode.
The WinCode is the result of the gamecode and a formula.

simmple example:
GameCode in website = 6 (formula 2*3)
WinCode = 3 (formula 6/2)

The wincode must be entered in de website so they can collect their credits.

Questions:
- Can i make a menu in fpsc for the input of the GameCode
- Can i calculate the WinCode from the GameCode
- How can i show the WinCode at the end of the game (its never the same code ?? huds??)


Thanks!

The world en me
X10 User
15
Years of Service
User Offline
Joined: 21st Jan 2009
Location:
Posted: 27th Feb 2009 22:32
To my knowledge something like this would not be possible, im not aware of FPSC being able to use formula's anywhere but in the game source code, so to get it to generate a random variable at the end would require editing of teh source code or VERY intelligent scripting

you could probably mimick what your going for in the end of the very last level, say for instance player stepping into a trigger zone and display a number using a hud, you could probably create a script using the random command to randomise the number given but i think thats about the best your going to get without maybe using ply's variable system but in the stock engine i dont think thats poss

if anyone can help it be ply, nickydude, someone likle that

- Why is everyone on here so rude? -
garnisoft
17
Years of Service
User Offline
Joined: 11th May 2007
Location:
Posted: 28th Feb 2009 08:23
Okay thanks.

I have mayby an other solution ..
Can fpsc write/read to files?

The world en me
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Mar 2009 01:50
No, it cannot.


The one and only,


garnisoft
17
Years of Service
User Offline
Joined: 11th May 2007
Location:
Posted: 3rd Mar 2009 08:09
Thanks everybody,

I go, and make it in 3dGamestudio.

Success! to all.

The world en me

Login to post a reply

Server time is: 2024-11-24 20:18:20
Your offset time is: 2024-11-24 20:18:20