Home   Help Search Login Register  

Author Topic: Counter?  (Read 440 times)

0 Members and 1 Guest are viewing this topic.

Offline D.murphy man

  • Members
  • *
  • I'm a llama!
Counter?
« on: 11 Apr 2003, 12:16:08 »
Hey all,

I was woundering how might a script a counter?
Like a thing that would add and subtact numbers so i could make my own little scoring system.
Allso i would like to know how i actully add and subtract numbers from it.

Thnx,
      Murphy.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Counter?
« Reply #1 on: 11 Apr 2003, 12:24:25 »
Search the forums for money or scoring scripts, they might help.  In the meantime, does this help?    Syntax not guaranteed.    Check the command ref for more info on the commands - arithmetic functions and the like at at the beginning, before A.

#loop
_score=0
? (getdammage loon1) > 0.5:_score=_score+2
~2
? someVariable:_score=_score-1
? _score<0:exit
? _score>5:goto "win"
goto "loop"

#win
hint "You won!"
~3
endVariable=true
exit
Plenty of reviewed ArmA missions for you to play