Home   Help Search Login Register  

Author Topic: bank script  (Read 905 times)

0 Members and 1 Guest are viewing this topic.

netta1234

  • Guest
bank script
« 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?
« Last Edit: 17 Jul 2004, 14:44:49 by netta1234 »

BibiPhoque

  • Guest
Re:bank script
« Reply #1 on: 17 Jul 2004, 17:07:49 »
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.

netta1234

  • Guest
Re:bank script
« Reply #2 on: 17 Jul 2004, 19:30:51 »
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?????

DBR_ONIX

  • Guest
Re:bank script
« Reply #3 on: 17 Jul 2004, 20:04:54 »
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

netta1234

  • Guest
Re:bank script
« Reply #4 on: 17 Jul 2004, 20:31:29 »
yeah i know but i donno how to fix it