(I am new to using script)
I used the following script:
1
2
3
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
Scripts
Finish construction of the torch on fire
Finish construction of the torch on fire
1

on:build_finish {
			addstate "building",166,4;
	}
"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
currentid() should work
you can probably just use "self" instead of those 2 parameters.
4 for the fire state is correct. on:build_finish {
		addstate "self",4;
	}
1
