Forum

> > Stranded II > Scripts > Scripting Questions
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripting Questions

2.429 Antworten
Seite
Zum Anfang Vorherige 1 235 36 37121 122 Nächste Zum Anfang

alt Re: Scripting Questions

Gast

Zitieren
it always executes
elseif ($gotjob==1&&$miner==0) {msg "You already have a job. Go away";}

alt Re: Scripting Questions

Cryp18Struct
User Off Offline

Zitieren
Use more brackets:

1
... elseif( ($gotjob==1) && ( $miner==0 ) ) ...

or try :
1
2
3
4
5
6
7
8
9
if ($gotjob==0) {
	dialogue "job", "miner.s2s";
}else{ 
	if ( $miner==0 ) {
		msg "You already have a job. Go away";} 
	else{
		dialogue "miner", "miner.s2s";
	}
}

alt Re: Scripting Questions

Raven Shadow
User Off Offline

Zitieren
Semilicon hat geschrieben
it always executes
elseif ($gotjob==1&&$miner==0) {msg "You already have a job. Go away";}


If i remember correctly, when using multiple comparisons in an if statement, each needs it's own ().
so try this instead:
elseif (($gotjob==1) && ($miner==0)) {
     msg "You already have a job. Go away";
}

alt Re: Scripting Questions

top_snille
User Off Offline

Zitieren
sorry for the long answer i was on a vecation and how do i get lumbering with incskill it doesent with ''lumb''

alt Re: Scripting Questions

Gast

Zitieren
I made another wall for my map and I can walk
through it...

### Wall
id=224
name=Wall
group=building
icon=gfx\palisade.bmp
model=gfx\palisade.b3d
scale=2
health=8000000000000000000
color=40,0,0
mat=wood
col=3

It's also listed at objects.inf.
How can I fix this?
Fast answer please, I need it tomorrow

alt text scripts

Gast

Zitieren
i need to know how to add text to npc`s im trying to maek a map and am unable to find uout how to add text scripts

alt Re: Scripting Questions

Raven Shadow
User Off Offline

Zitieren
geust hat geschrieben
i need to know how to add text to npc`s im trying to maek a map and am unable to find uout how to add text scripts


You need to take a look at the S2 reference and learn
about the msg, msgbox and msgwin dialogues
and take a look at the files that end in .s2 in S2's
/script subfolder

alt map hoping?

Gast

Zitieren
i am making 2 map and i am wondering if you can be on map1 in the game then go to map2 then go back to map1 and have it be the same as you left it?

alt texture maping

Gast

Zitieren
i am useing blender to create some bildings and win i am finished making and puting the texture on it shows in the game as wight can some one help me

alt Re: Scripting Questions

lenz-_-
User Off Offline

Zitieren
Alright, i just started adventure mod.
On the first isle, i am on the 13-14 day, and i really progress my camp, and my skills, but what should i do next?
What is the final goal of the isle and when i kill the lions and the turtles , where can i get more skin?

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Better ask in Newbie thread. But you'll have to build hut or treehouse (treehouse is easier) and then you'll see

alt planting location help

Gast

Zitieren
i am making a advernure mod wee you are straned on a island that used to have a farming town on it and i want to make it so that you can only plant in the farm and not any were eals.

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
is there some way to have acces (and change) to any definition of the object/unit/item during the game using scripts?
I know of course about scale, color, maxhealth, model, some player definition, but I'd like to have acces to any of them.....

alt Re: Scripting Questions

Mc Leaf
Super User Off Offline

Zitieren
HudaJan hat geschrieben
is there some way to have acces (and change) to any definition of the object/unit/item during the game using scripts?
I know of course about scale, color, maxhealth, model, some player definition, but I'd like to have acces to any of them.....

You mean something like
1
2
3
4
5
6
7
8
9
.
.
.
health=500
maxweight=150000
mat=wood
.
.
.
?

No. Unfortunately not.

You may set some parameters like
1
param=whatthefuck,7
and read them with s2 cmd defparam. But that's all.
Zum Anfang Vorherige 1 235 36 37121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht