Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Money system
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Money system (Read 648 times)
0 Members and 2 Guests are viewing this topic.
Ding
Contributing Member
Jurassic Park
Money system
«
on:
20 Jun 2005, 06:33:04 »
this has probably been asked about before but i searched the forum and dident find much. What i want to do is have a kind of money system, where say yo uactivate a trigger it goes up by 100, i think this gan be done with logics, but i do not know how to make the money go up, e.g. i can set it to a certain number to start with like startmoney = 100, but idont know how to make it increase from the current number with another command, can someone help me please
Logged
"If I remain lost and die on a cross, atleast I wasn't born in a manger"
j-man
Guest
Re:Money system
«
Reply #1 on:
20 Jun 2005, 07:31:32 »
startmoney = startmoney + 100
Now you'll be $100 richer
Logged
Ding
Contributing Member
Jurassic Park
Re:Money system
«
Reply #2 on:
20 Jun 2005, 16:47:54 »
thanks
will this work in multiplayer as i know ofp has its probelms with logics through multiplayer
Logged
"If I remain lost and die on a cross, atleast I wasn't born in a manger"
Chris Death
Former Staff
Finally Death's gonna get ya
Re:Money system
«
Reply #3 on:
20 Jun 2005, 17:17:31 »
startmoney = startmoney + 100; publicVariable "startmoney"
now you're $100 richer and everybody knows
~S~ CD
«
Last Edit: 20 Jun 2005, 17:18:11 by Chris Death
»
Logged
Dont argue with idiots....they will bring you down to their level and beat you there with experience.
How to use Waypoint type Scripted
Ding
Contributing Member
Jurassic Park
Re:Money system
«
Reply #4 on:
21 Jun 2005, 21:34:26 »
thanks, i was going to ask about that
Logged
"If I remain lost and die on a cross, atleast I wasn't born in a manger"
Ding
Contributing Member
Jurassic Park
Re:Money system
«
Reply #5 on:
22 Jun 2005, 20:09:35 »
New questio nrelated to this, how do i get it to desplay the amount of money to the player when the logic which plus 50's the total amount of money is activated, as in how do i get it to show the current amount of players money?
Logged
"If I remain lost and die on a cross, atleast I wasn't born in a manger"
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Money system
Top of page