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 / Heal station

Author
Message
Fps n00b
15
Years of Service
User Offline
Joined: 24th Apr 2009
Location:
Posted: 16th May 2009 19:30
I'm trying to make a heal station like in Bioshock and am new to variables. I want it to take 10 coins away when I heal but I don't know how to set the current variable. (decvar=10 takes away from the current variable.) Does anyone know what to do to set the variable?
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 17th May 2009 01:31
I believe you need to use


Priest of the Church of Joe Wood
Pride
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Eastern USA
Posted: 17th May 2009 03:51
Are you using Ply's Mod or vanillia FPSC?


"Tempo non é só unha teoría, senón unha forza"
Try and figure it out
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th May 2009 08:06
You're mixing two different variable systems, Leon. lol

"decvar" is vanilla FPSC's command to decrease a variable. "subvar" is the Ply's Mod command to do it. "[variable name]" is only seen with Ply's Mod variable system. The vanilla way to do it requires you to set which variable number is to be used first, and then use the "decvar" command to subtract from it.


The one and only,


Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 17th May 2009 18:56
Well, when you do so much scripting and playing around with multiple mods and the stock engine, things get confusing. My bad.

Priest of the Church of Joe Wood
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th May 2009 01:32
Lol, I understand. I was just pointing it out to prevent any confusion for people that may be reading this.


The one and only,


Login to post a reply

Server time is: 2024-11-25 02:11:30
Your offset time is: 2024-11-25 02:11:30