edited 1×, last 12.09.12 01:51:48 pm
Forum
Stranded II Scripts VitaminsVitamins
6 replies 1
You know, one idea leads to another leads to another...
Add this script to the achool stuff:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
on:eat { 	 process "drinking",'time for drinking in mileseconds'; 	 consume 'health','hunger','thirst','exaustion'; 	 $alchool+='value you want for alchool increasing'; 	 if ($alchool>=200) { 				 timer "unit",1,'time between vomits in milleseconds',1,"vomit"; 				 } } on:vomit { 		process "vomiting",'time for vomiting in mileseconds'; 		consume 'health','hunger','thirst','exaustion'; 		play "vomit.wav"; 		vomit 1; 		if ($alchool>=200) { 				 timer "unit",1,'time between vomits in milleseconds',1,"vomit"; 					}else{ 				 freetimers "unit",1,"vomit"; 		} }
Add this script for the vitamin:
1
2
3
4
5
2
3
4
5
on:eat { 	 process "Eating vitamin",'time required for eating vitamin'; 	 $alchool-='quantity of alchool reduced'; 	 freetimers "unit",1,"vomit"; }
Hope it works fine, if not (or if this is not what you wanted) contact me, I'll be glad to help.
Stranded_Guy2910 has written
If I understood right you want the player to start vomiting if he drinks too much alchool and the vitamin should make him stop vomiting right?
Add this script to the achool stuff:
Add this script for the vitamin:
Hope it works fine, if not (or if this is not what you wanted) contact me, I'll be glad to help.
Add this script to the achool stuff:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
on:eat { 	 process "drinking",'time for drinking in mileseconds'; 	 consume 'health','hunger','thirst','exaustion'; 	 $alchool+='value you want for alchool increasing'; 	 if ($alchool>=200) { 				 timer "unit",1,'time between vomits in milleseconds',1,"vomit"; 				 } } on:vomit { 		process "vomiting",'time for vomiting in mileseconds'; 		consume 'health','hunger','thirst','exaustion'; 		play "vomit.wav"; 		vomit 1; 		if ($alchool>=200) { 				 timer "unit",1,'time between vomits in milleseconds',1,"vomit"; 					}else{ 				 freetimers "unit",1,"vomit"; 		} }
Add this script for the vitamin:
1
2
3
4
5
2
3
4
5
on:eat { 	 process "Eating vitamin",'time required for eating vitamin'; 	 $alchool-='quantity of alchool reduced'; 	 freetimers "unit",1,"vomit"; }
Hope it works fine, if not (or if this is not what you wanted) contact me, I'll be glad to help.
Thanks but it is something to do right instead of alcohol (alc) were vitamins (vit)? Thanks!
1