1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
script=start 	on:build_finish { 		event "campfirebuild",0,0; 	} 	on:use { 		if (gotstate("unit",1,6)){ 			if ((gotstate("self",4)+gotstate("self",5))>0){ 				process "warm-up",3000; 				freestate "unit",1,6; 			}else{ 				dialogue "start","sys/scripts/campfire.s2s"; 			} 		}else{ 			dialogue "start","sys/scripts/campfire.s2s"; 		} 	} 	on:barkbranchfire1 { 		$tmp=currentid(); 		if (distance("unit",1,"object",$tmp)<100){ 			if ((gotstate("object",$tmp,"fire")+gotstate("object",$tmp,"eternalfire"))==0){ 				$barkbranchfire=$tmp; 			} 		}		 	} 	on:addstate { 		if (state()==4){ 			statevalue "self",4,0; 		}elseif (state()==5){ 			statevalue "self",5,0; 		} 	} script=end
What I want to do is when it opens the Menu which is setup like this:
1
2
3
4
5
6
7
2
3
4
5
6
7
page=start title=Campfire text=start This is a Campfire, you put fuel into the campfire to keep it going. text=end button=action:close,Use Campfire button=action:close,Leave
When I click Use Campfire it uses this command on it self:
exchange "self",1,7,24,25,107;
I have no idea how to do this.
Oh also how would I manipulate Items inside of a inventory and how would I go about making a timer. Sorta want the player to put fuel into the Campfire then have it slowly burn it up based on whats inside it taking more or less time to keep the fire going, then when it runs out going out and not being able to be setup again until you put more wood into it. Lastly how would one go about changing an objects model on the fly so when it would have no wood it would change model to my only rock circle model?
Thanks in Advance.