Forum

> > Stranded II > Scripts > Create object with state
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Create object with state

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Create object with state

RrR2010
User Off Offline

Zitieren
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
2× editiert, zuletzt 05.09.11 14:52:36

Admin/Mod Kommentar

Stop pushing your thread. /Leiche

alt Re: Create object with state

DC
Admin Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht