Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / My canteen script wont work

Author
Message
General Jackson
User Banned
Posted: 3rd Apr 2009 02:50 Edited at: 3rd Apr 2009 19:46
I am making a script where you have a canteen (its not near being finished), and if you dont drink water when prompted, you, well, die!!
but it wont display the canteen.tga image i created and i KNOW i did it right (i think!)
could anyone tell me what i am doing wrong?


It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Apr 2009 08:52
Make sure your file names don't contain spaces in them. That may prevent the script from being parsed correctly by the engine.


And, um... you may want to remove your EDIT. I think that's a little on the personal side and may get you moderated.


The one and only,


General Jackson
User Banned
Posted: 3rd Apr 2009 19:47
no spaces. can you think of anything else that could be the matter?


i removed my edit. Did it make you laugh?

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Apr 2009 02:11
Well, this part:
Quote: ":state=2:timerstart
:state=2,timergreater=20000:"


The timer is constantly being reset and then checked. The timer will never reach 20 seconds that way


The one and only,


General Jackson
User Banned
Posted: 4th Apr 2009 05:07
ooooh. thx man. your the greatest.
did my edit make you laugh?

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Apr 2009 06:36
I wouldn't say "laugh", it was more of a small chuckle.


The one and only,


General Jackson
User Banned
Posted: 4th Apr 2009 15:17
ok, so is there a way too STOP the timer?

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Apr 2009 23:26
No, you cannot stop the timer. Stopping the timer is equivalent to turning your PC off.


What were you planning to do if you could, though?


The one and only,


General Jackson
User Banned
Posted: 5th Apr 2009 00:22
its kinda long, but..

1. you have a canteen
2.after a specific amount of time, you are propmpted to take a drink.
3.when you drink, your water level goes down.
4.if you dont drink, you er, DIE!!
5.when all your water is out, you have to get more.
6. is this possible?

It is well that war is so terrible or we should grow too fond of it- Robert E Lee
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Apr 2009 02:34
Here's some pseudo-code for you to mull over:

- Start Timer
- Wait for timer to reach certain amount of time
- When timer reaches said time, prompt user to take drink, start timer again
- If timer reaches a certain time before player takes a drink, then they die
- If player takes drink before timer reaches end, then go back to first bullet.


The one and only,


General Jackson
User Banned
Posted: 5th Apr 2009 04:49
thx thats what i was thinking just didnt know if it would work or not

It is well that war is so terrible or we should grow too fond of it- Robert E Lee

Login to post a reply

Server time is: 2024-11-24 22:37:58
Your offset time is: 2024-11-24 22:37:58