Author Topic: Varible Help  (Read 580 times)

I'm trying to make a Nacht Der Untoten Clone from WAW with a money based point system.So for my varible i type in <var:client:score> you get 50 points for killing a zombie.Heres my event for a weapon
OnActiavte --->Ifvarible var:client:score >= 200-->Onvaribletrue --> additem Magnified Sniper
And here is the event for my doors and things
Onactivate -->Namedobject-->Helproomdoor-->ifvarible var:client:score >= 750
OnVaribleTrue-->Namedobject-->helproomdoor-->Dissapear -1
OnvaribleFalse-->Client-->CenterPrint-->Insugniffcent Fund
OnVaribleFalse-->self-->playsound-->Beep_Denied

So what exactly do you need?

I need For the money to actually happen,nothing happens.I think the problem is that var:client:score isn't communicating with the game.For example lets say i have 1000 points,and i try to buy a weapon for 100 points i'll go click on the buy button and it won't give me it...

Have you tried ifvalue <var:cl:score> >= 200 1 3 (the last two numbers are the event lines to be executed from first num to second num)
Onvariabletrue player additem weapon
Onvariabletrue clinet incscore -200
Onvariablefalse client centerprint you dont have enough points

I need For the money to actually happen,nothing happens.I think the problem is that var:client:score isn't communicating with the game.For example lets say i have 1000 points,and i try to buy a weapon for 100 points i'll go click on the buy button and it won't give me it...
This happens to me too

You should be using ifValue instead of ifVariable, and you have to make sure you have the chevrons (< >) before and after the value.

<var:cl:score>

Thanks guys,i have over half of the map done because of you!

Please lock :P problem solved