well.... heres my script.... and it appears to work.. I have 2 players that basically purchase a $200 Jeep... Now I got another problem related with this script.. I dont know how to get it all to activate with an addaction command.
Rep1startingmoney = _this select 0
Rep2startingmoney = _this select 1
RepJ1 = FALSE
RepJ2 = FALSE
? Rep1 distance jeept < 6 : RepJ1 = TRUE
? Rep2 distance jeept < 6 : RepJ2 = TRUE
? RepJ1 : Goto "buyjeep1a"
? !RepJ1 : Goto "buyjeep1b"
? RepJ2 : Goto "buyjeep2a"
? !RepJ2 : Goto "buyjeep2b"
#end
RepJ1 = FALSE
RepJ2 = FALSE
exit
#buyjeep1a
? RepJ1 : Rep1startingmoney = Rep1startingmoney - 200
#buyjeep1b
_msg=Format["Money: $%1",Rep1startingmoney]
Hint _msg
Goto "end"
#buyjeep2a
? RepJ2 : Rep2startingmoney = Rep2startingmoney - 200
#buyjeep2b
_msg=Format["Money: $%2",Rep2startingmoney]
Hint _msg
Goto "end"
The hint part Seems to only hint to one player.. unless its hinting both players and Im seeing the right result each time.. .. I dunno :\
I want each player to be able to activate this script with the addaction but to know which player activated.. Ive tried:
BuyJeep = Player1 AddAction ["Buy Jeep $200", "[Rep1startingmoney,Rep2startingmoney] exec "jeep.sqs"]; BuyJeep = Player2 AddAction ["Buy Jeep $200", "[Rep1startingmoney,Rep2startingmoney] exec "jeep.sqs"];
but it wont let me do it like that.. theres a problem in the script exec line..