Forum

> > Stranded II > Scripts > Finish construction of the torch on fire
Forums overviewStranded II overview Scripts overviewLog in to reply

English Finish construction of the torch on fire

4 replies
To the start Previous 1 Next To the start

moved Finish construction of the torch on fire

RrR2010
User Off Offline

Quote
I wonder what makes a script with that when I finish building a torch, she is already on fire.
(I am new to using script)
I used the following script:

1
2
3
on:build_finish {
			addstate "building",166,4;
	}

What is missing/wrong?
Anyone can Help me?

Note: My id of torch is 166 and of fire is 4

old Re: Finish construction of the torch on fire

Hurri04
Super User Off Offline

Quote
where did you write this script?

as far as I can tell the script looks fine so the only problem could be that your wrote it into the wrong place.

(also you maybe should have better opened this thread in the scripting section.)

old Re: Finish construction of the torch on fire

DC
Admin Off Offline

Quote
> "building" as class is wrong - that's no valid class. it must be "object"

> 166 as id is wrong - how do you know that your new building will get the id 166? I guess s2 cmd currentid() should work

> > > you can probably just use "self" instead of those 2 parameters.

> 4 for the fire state is correct.

old Re: Finish construction of the torch on fire

RrR2010
User Off Offline

Quote
Thanks. I used this script and it worked!!!

1
2
3
on:build_finish {
		addstate "self",4;
	}

Very Thanks

(Im new to using scripts of stranded. If anyone want to send me a message with hints I thank)

I'm sorry to have put the topic in the wrong place. I'm still new to the forum and am using google translator because I'm Brazilian.
edited 3×, last 18.07.11 08:30:12 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview