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 / Weapon buying :)

Author
Message
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 12th Feb 2009 18:18
Hey guys iv bin concidering a metthod of buying weapons... And ive got most of the kinks worked out. I just need someone to script it using my method...

Step 1

Atatch to the destroy script of entities either;
A) A run command that starts another program (It would be easy to make a DB Pro program that increases your score)
B) A command that can increase a variable that will be written to an external file

Step 2

Write a menu in DB Pro and have an extention that makes a veriable 1 once its been bought (Thats all sorted and its bin tried and tested by me and a friend.... The actual menus not made but all the commands are working fine E.G. Load a game)

Step 3

Applying the bought weapon factor to the game. I figure if the script for the weapon is missing (the .fpi file) then it will just not load the file. If the principle above works I can them make an if function surrounding the whole of the command (The variable data of the weapons will be loaded from a file). If I place multiple weapons in the game then only the ones that you have bought, or the default, will work.
General Jackson
User Banned
Posted: 12th Feb 2009 18:51
Its possible to buy weapons with the fpsc cash system script.
if your saying like a menu, then never mind. but i've seen where chidem has made it where you can buy weapons with the cash script

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 12th Feb 2009 19:02
Could you post a link with this script? It would be very useful cause I want t have a system like this but one out of the ingame session
chidem
15
Years of Service
User Offline
Joined: 13th Jan 2009
Location:
Posted: 12th Feb 2009 19:54
Here's the link to Conjured Entertainment's cash script - it is pretty easy to adapt and uses Huds to simulate a menu system.

http://forum.thegamecreators.com/?m=forum_view&t=130281&b=24
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 13th Feb 2009 21:30
AH!!!! I know how i can use this... No wait i dont!!! This is nothing like what i want guys... If i could explaing u guys could give me some more brilliant posts

I need a system that buys the weapon outside the game by killing people, not picking up money! I recon i could use the scripts though So i guess i could use it If there are any more posts tell me I'll post a finished product when im done
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th Feb 2009 04:46
Arenas you could do something like this to the destroy script of the enemies.


...
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 14th Feb 2009 09:02
I just add it to the Destroy fade out. And besides i have no idea what thats supposed to do. Im not the best programmer im more of a jerry rigger when it comes to programming
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th Feb 2009 16:58
destroyfade makes the body of the enemy fade out to nothing saving the engine from rendering the enemy when dead.

...
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 14th Feb 2009 19:11
Ye i know what they do cause iv experimented with the scripting. Destroy fade is the one i norally use.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th Feb 2009 19:59
have you tried the load/unload system by uman? that helps too.

...
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 14th Feb 2009 21:07
No i havent. Could you post a link. Iv almost fin my 2nd level. Soo much detail!!! They take ages to make
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th Feb 2009 23:20
it can be found here Uman's load/unload entity system

...
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 15th Feb 2009 09:07
Its a long script that could be very useful and iv added it to favs. But non of this to be honest is what im looking for.

This wont expand over multiple games. Im looking for a command that writes a variable to a file (and can load and rewrite). This way its perminent (as in will still be there when the game ends) and i dont think it will be much trouble finding a command that either checks if a file exists (if you buy a weapon DB Pro makes/deletes a file) or can read an amount from a file (this could be used if your buying ammo for your weapons).
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 15th Feb 2009 13:43
you would have to edit the source code to have FPSC do that Arenas. you'll have to find a work around or edit the source code.

...
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 15th Feb 2009 21:39
I was wondering whether FPSC had a command that would run another program. I could compile all the data into another DB Pro program and that would solve soo many problems
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 16th Feb 2009 04:13
yep but that would be too easy though wouldn't it? Now you have to find a workaround.

...
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 16th Feb 2009 05:35
If you decide to add an FPI command of your own to do that, I've made a tutorial somewhere around here explaining how to do that.

It would be quite easy with the DBP command "Execute File".


The one and only,


A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 16th Feb 2009 11:49
How easy is it to write a new comand? Could you post a link to your tutorial. If i were able to write new commands, there would be a whole world of new uses.

PS - Iv already downloaded FI edit pad
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 16th Feb 2009 19:32
the tut is here:Ply's tutorial

...
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 17th Feb 2009 19:42
Thanks iv had a look at it but really cant understand whats going on all that well. I need to make a command that checks the name of a file (if the wepon is operational the name it one). and a command that runs an external program... Have you written anything like that that i could use?
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 17th Feb 2009 21:13
no i'm sorry. I'm currently using Blitz Basic 3D(i know it's noobish) for tech demos and concept proofing until i get the full DBPro.

...
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 18th Feb 2009 18:49
Well i can do the game fine with out it. This program idea would just be the icing on the cake....

What iv done is iv made killer wepons that you have to find. There stuff like in a corridor theres a segment room that you cant quite readh. So what you do is acivate a switch, blow up a boiler, enter a secret room behind the boiler and acivate a trigger. This trigger makes a box spawn. Using this box you push it to the location, climb on it, and hey presto, your there. Thats how you get the 'golden gun' in this level. Im gonna change it to the golden D-Eagle in the TGC Store...

i just recon buying stuff would be good . Im used to work arounds though . I can think of one now, but i would use a lot of space. Here it is:

Have it so that you can buy 1 of say 5 weapons. Then you have five of the same levels, each one with a different starting wepon. Im good with stuff like that. But im looking for easier ways now ...

Login to post a reply

Server time is: 2024-11-24 19:45:35
Your offset time is: 2024-11-24 19:45:35