Forum

> > Stranded II > Scripts > Create object with state
Forums overviewStranded II overview Scripts overviewLog in to reply

English Create object with state

2 replies
To the start Previous 1 Next To the start

old Create object with state

RrR2010
User Off Offline

Quote
I wonder if there is a way to create an object that has a state. For example, when creating a hammer, cause it is on fire or shock. I'm actually creating a lamp and I want to make him stay with the status of flare.

See my script here:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
###Lamp
combi=start
id=Lamp
req=85,5 (iron)
req=106 (bottle)
req=37 (potion)
req=30,1,stay (hammer)
gen=507 (lamp)
script=start
	speech "positive";
	event "lampcombi",0,0;
	addstate "self",22;
script=end
combi=end

I know that the error is in "addstate ...", but I do not know how it would be right.

I would also like to know what the line means "event" lampcombi, "0.0," and the numbers "0.0,".

Grateful
edited 2×, last 05.09.11 02:52:36 pm

Admin/mod comment

Stop pushing your thread. /Leiche

old Re: Create object with state

DC
Admin Off Offline

Quote
items can not have a state when they are stored somewhere (in the player inventory or an object or wherever)

items created by combinations will be instantly stored so they state would disappear. doesn't work this way. also I'm not sure if "self" works in a combination script.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview