OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: netta1234 on 17 Jul 2004, 14:42:00
-
#begining
?(robed>300) : goto "no"
_moneyernt=10000
playercounter=playercounter+_moneyernt
hint Format["You have Robed The Bank and yernt £%1", playercounter]
robed=robed+10000
p1counter=p1counter-1000
p2counter=p1counter-1000
p3counter=p3counter-1000
p4counter=p4counter-1000
goto "start"
#no
hint "theres nothing to rob come back later"
goto "start"
#start
robed=robed-1
?(robed<2) : goto "exit"
~1
goto "start"
#exit
exit
some dosent work right becouse p1,p2,p3,p4 dont loose 1000money
what wrong with my script?
-
We need more information, because the script itself seems good...
If you don't get any error when the script is executed, then maybe your robed variable is never <= 300 at #begining. That would explain why p1, p2, p3 and p4 never lose money.
Maybe giving us your mission could help.
-
i fixed that problem now take a look on this
#GetMoney
? ((m1 distance Work) > 100) : goto "nomoney"
m1_counter=m1_counter+200
hint Format["Good Jop Being At Work Your Boss Gave You 200£ £%1", m1_counter]
? (m1 == player) : hint _msg
goto "routine"
#routine
~120
hint "Paycheck incoming in 1 minute, so stay in your work!"
~60
goto "getmoney"
#nomoney
hint Format["Man you Didint Meet At Work Now You Dont Get Any Check If You Want One Anyway MEET UP NEXT TIME!!! £%1", m1_counter]
? (m1 == player) : hint _msg
m1_counter=m1_counter+0
goto "routine"
when im 100 away from the work i still get money how can that be?????
-
Erm, I think the GOTO things are case sensitve..
So change the first line to
#getmoney
Looked over the script a few times, and it seems okay.. THats the only thing I can see that wouldn't work :-\
- Ben
-
yeah i know but i donno how to fix it