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 / buying script problem

Author
Message
joeganzi
14
Years of Service
User Offline
Joined: 25th Feb 2010
Location:
Posted: 19th Feb 2011 16:08
Hi...I'm using the buying script of conjured and it works great but I have some problems when I change the price of item...
Sometimes it tells me that I don't have enough money to buy item but I have...

Other question...is it possible to make the cash system working for every levels and when the player dead too?

Thanks!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 19th Feb 2011 16:48 Edited at: 19th Feb 2011 16:50
Post the script so I can see what changes have been made and maybe I can help.
Make sure you have no other scripts running that are altering global variable #1.

I loaded my cash system on my new netbook the other day and the system worked fine with v118.008.
However, when examining my files I noticed that the 6th painting was assigned to cs1 in its FPE.
It has been awhile since I made this thing so I will have to go in and re-examine the scripts, but I am pretty sure that 6th painting should be using cs6.fpi not cs1.
It shouldn't make much difference when dealing with 100's or 1,000' but it would have an affect on 10's and 1's.
Any value less than 100 may experience problems, so if you encounter that you can either avoid small values in your prices or try changing that script assignment for the 6th painting.

   Conjured Entertainment

 WARNING: Intense Madness
joeganzi
14
Years of Service
User Offline
Joined: 25th Feb 2010
Location:
Posted: 21st Feb 2011 18:05
Thanks for the replay...I had a second counter and now I've chenged it's name and everything looks ok...but the global value of money restart from 0 in a different level...is there any way to make it still during the all game?

Thanks a lot!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 23rd Feb 2011 00:04 Edited at: 23rd Feb 2011 00:11
From what I understand, the global variables are suppose to retain their values from level to level, and when you save the game.

Maybe something is resetting the value for that variable, and it may even be in the scripts.

I'll have a look in there again and see.

EDIT
My initialization routine in the scripts only set the local variables to zero at the start and do not effect the global variables, so it must be something else that is resetting it.

I'll play with this and see if it happens on my end with no other scripts running.

R3VenGe
14
Years of Service
User Offline
Joined: 26th Jun 2010
Location:
Posted: 5th Mar 2011 00:52
pleaaaaaaaaaaaase
give me the script
+
it work with online game
like counter strike
buy weapon before start game
biohazardNL
15
Years of Service
User Offline
Joined: 26th Oct 2009
Location: netherlands
Posted: 17th Mar 2011 00:04
Quote: "pleaaaaaaaaaaaase
give me the script
+
it work with online game
like counter strike
buy weapon before start game"


dynamic entities doesn't work in online mode. so you can't pickup money, only weapons. try project blue that will help

[href]http://tbhproductions.com[/href]
Turtle Productions
15
Years of Service
User Offline
Joined: 22nd Jan 2009
Location: Finland
Posted: 17th Mar 2011 20:25
Well you can do it using health as money, because health packs are able to pick up in Online.

Thanks,
TP

Login to post a reply

Server time is: 2024-11-24 10:34:59
Your offset time is: 2024-11-24 10:34:59