Home   Help Search Login Register  

Author Topic: Money system  (Read 651 times)

0 Members and 1 Guest are viewing this topic.

Offline 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 :)
"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  ;)

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re:Money system
« Reply #2 on: 20 Jun 2005, 16:47:54 »
thanks :D will this work in multiplayer as i know ofp has its  probelms with logics through multiplayer
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
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 »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline 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 :D
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline 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?
"If I remain lost and die on a cross, atleast I wasn't born in a manger"