Forum

> > Stranded II > Scripts > Scripting Questions
Forums overviewStranded II overview Scripts overviewLog in to reply

English Scripting Questions

2,429 replies
Page
To the start Previous 1 235 36 37121 122 Next To the start

old Re: Scripting Questions

Guest

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

old Re: Scripting Questions

Cryp18Struct
User Off Offline

Quote
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";
	}
}

old Re: Scripting Questions

Raven Shadow
User Off Offline

Quote
Semilicon has written
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";
}

old Re: Scripting Questions

top_snille
User Off Offline

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

old Re: Scripting Questions

Guest

Quote
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

old text scripts

Guest

Quote
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

old Re: Scripting Questions

Raven Shadow
User Off Offline

Quote
geust has written
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

old map hoping?

Guest

Quote
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?

old texture maping

Guest

Quote
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

old Re: Scripting Questions

lenz-_-
User Off Offline

Quote
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?

old Re: Scripting Questions

HudaJan
Super User Off Offline

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

old planting location help

Guest

Quote
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.

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
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.....

old Re: Scripting Questions

Mc Leaf
Super User Off Offline

Quote
HudaJan has written
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.
To the start Previous 1 235 36 37121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview