Forum

> > Stranded II > General > Skills
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Skills

10 replies
To the start Previous 1 Next To the start

old Skills

Corvallis5
User Off Offline

Quote
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

old Re: Skills

Corvallis5
User Off Offline

Quote
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

old Re: Skills

Corvallis5
User Off Offline

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

old Re: Skills

Mc Leaf
Super User Off Offline

Quote
user Corvallis5 has written
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"...

old Re: Skills

Corvallis5
User Off Offline

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

im basically asking DC or LionHearted to reply to this thread

old Re: Skills

Corvallis5
User Off Offline

Quote
im sorry its not working

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

old Re: Skills

Mc Leaf
Super User Off Offline

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

old Re: Skills

Corvallis5
User Off Offline

Quote
thank you,
i just didn't know you had to put in the game.inf
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview