Forum

> > Stranded II > General > Skills
ForenübersichtStranded II-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Skills

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Skills

Corvallis5
User Off Offline

Zitieren
im a bit confused.
i know how to make skills go up and down and all, but how do i block the construction of an item until you get to a certain level.
Like you can't make juice till your at level something in a skill

alt Re: Skills

Corvallis5
User Off Offline

Zitieren
can you give me an example
i looked in lots of mods that have that feature and i couldn't see anything different in the combinations or the skill infos or the items_(group) files

alt Re: Skills

Corvallis5
User Off Offline

Zitieren
### Stance
id=200
name=Stance
group=building
icon=gfx\stance.bmp
model=gfx\stance.b3d
health=500
mat=wood
col=4
behaviour=cover
script=start
     on:build_finish {
          event "stancebuild",0,0;
     }
script=end
description=start
Offers cover for sleeping
description=end





i cant see anything

alt Re: Skills

Mc Leaf
Super User Off Offline

Zitieren
user Corvallis5 hat geschrieben
can you give me an example
i looked in lots of mods that have that feature and i couldn't see anything different in the combinations or the skill infos or the items_(group) files


try

1
lockcombi "hammer";

to lock the combi "branch + stone = hammer"...

alt Re: Skills

Corvallis5
User Off Offline

Zitieren
how is it done for the stance of in Lion_Hearted's mod

im basically asking DC or LionHearted to reply to this thread

alt Re: Skills

Corvallis5
User Off Offline

Zitieren
im sorry its not working

just give me an example of how some existing mod did it

alt Re: Skills

Mc Leaf
Super User Off Offline

Zitieren
user Corvallis5 hat geschrieben
im sorry its not working

just give me an example of how some existing mod did it

First lock the combi, e.g.

1
2
3
4
5
on:start {
	...
	lockcombi "arbalest";
	...
}
(-> game.inf)

Then you need a skill which you increase from time to time..., e.g.

1
2
3
on:kill {
	event "iskill_hunt","global";
}
(-> units.inf)

Here the event "iskill_hunt" will be triggered (in game.inf) every time you kill a unit. So let's take a look at the game.inf again...
1
2
3
4
5
6
7
8
9
10
on:iskill_hunt {
	incskill "hunt",1,"Hunting"; //inc. skill by 1
	$tmp=skillvalue("hunt"); //current skillvalue...
	...
	//if the skill reaches 150 then unlock arbalest-combi
	if ($tmp==150) {
		...
		unlockcombi "arbalest";
	}
}

alt Re: Skills

Corvallis5
User Off Offline

Zitieren
thank you,
i just didn't know you had to put in the game.inf
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtStranded II-ÜbersichtForenübersicht