Forum

> > Stranded II > General > how to create skills
Forums overviewStranded II overviewGeneral overviewLog in to reply

English how to create skills

16 replies
To the start Previous 1 Next To the start

old how to create skills

Guest

Quote
i need help with creating new skills
i want to make things like "mining" and "cooking" or "building"
how do i do that

old Re: how to create skills

bezmolvie
User Off Offline

Quote
Yeah, but if u want to set parameters (like at this point in skill this will happen) Type in game.inf like
if($urskillvar==a number) {
then this piece of script will happen;

old Re: how to create skills

DontKnowToScript
User Off Offline

Quote
Bloodshot has written
Yeah, but if u want to set parameters (like at this point in skill this will happen) Type in game.inf like
if($urskillvar==a number) {
then this piece of script will happen;

i dont mean to raise a skill,i mean how to make it
e.g. cooking like in skill lvl 50 u can bake salt cookies
this what i mean

old Re: how to create skills

humer
User Off Offline

Quote
First of all you have to add something like this into game.inf
This achieves that you reached a new cooking skill

1
2
3
4
5
6
on:iskill_cook {
		incskill "cook",1,"cooking";
		$tmp=skillvalue("cook");
		if ($tmp==50){ event "skillup","global";
		unlockcombi "salt_cookies";}		
	}

Now you have to add to all cookable items (meat, fish...), in the items_edible.inf a script which triggers the iskill_cook event.
Add this to the on:use command after alteritem 1,10;

1
event "iskill_cook","global";

Finally you have to define the salt_cookie combination in the combination_actions.inf.

1
2
3
4
5
6
7
8
9
10
11
combi=start
id=salt_cookies
req=//Here you have to add the id from which item you need for the salt_cookies and how much (e.g xy,1)
req=//the second item you need. you can also make a third
gen=//Here you have to add the salt_cookie id
script=start
	speech "positive";
	process "merging",150;
	event "iskill_cook","global";
script=end
combi=end


I don't think that this is going to work because there are some changes you have to do but this is the main part of changes.

old Re: how to create skills

DontKnowToScript
User Off Offline

Quote
humer has written
First of all you have to add something like this into game.inf
This achieves that you reached a new cooking skill

1
2
3
4
5
6
on:iskill_cook {
		incskill "cook",1,"cooking";
		$tmp=skillvalue("cook");
		if ($tmp==50){ event "skillup","global";
		unlockcombi "salt_cookies";}		
	}

Now you have to add to all cookable items (meat, fish...), in the items_edible.inf a script which triggers the iskill_cook event.
Add this to the on:use command after alteritem 1,10;

1
event "iskill_cook","global";

Finally you have to define the salt_cookie combination in the combination_actions.inf.

1
2
3
4
5
6
7
8
9
10
11
combi=start
id=salt_cookies
req=//Here you have to add the id from which item you need for the salt_cookies and how much (e.g xy,1)
req=//the second item you need. you can also make a third
gen=//Here you have to add the salt_cookie id
script=start
	speech "positive";
	process "merging",150;
	event "iskill_cook","global";
script=end
combi=end


I don't think that this is going to work because there are some changes you have to do but this is the main part of changes.

ok,now i need to know to create the skill itself in game.inf
EDIT:i know how to create combinations

old Re: how to create skills

humer
User Off Offline

Quote
Dontknowtoscript has written
ok,now i need to know to create the skill itself in game.inf


You have to add a new file in the skillinfo folder

old Re: how to create skills

DontKnowToScript
User Off Offline

Quote
humer has written
Dontknowtoscript has written
ok,now i need to know to create the skill itself in game.inf


You have to add a new file in the skillinfo folder

I KNOW but i need help wth this thing:


     on:skill_dig { msgbox "Skill Info","sys/skillinfos/dig.inf"; }
     on:iskill_dig {
          incskill "dig",15,"Digging";
          $tmp=skillvalue("dig");
          if ($tmp==25){ event "skillup","global";}
          if ($tmp==50){ event "skillup","global";}
          if ($tmp==100){ event "skillup","global";}
          if ($tmp==200){ event "skillup","global";}
          if ($tmp==500){ event "skillup","global";}

like the this but with cooking

old Re: how to create skills

humer
User Off Offline

Quote
yeah but i've already post this

humer has written
First of all you have to add something like this into game.inf
This achieves that you reached a new cooking skill

1
2
3
4
5
on:iskill_cook {
          incskill "cook",1,"cooking";
          $tmp=skillvalue("cook");
          if ($tmp==50){ event "skillup","global";unlockcombi "salt_cookies";}          
     }


you just have to extend it

1
2
3
4
5
6
7
8
on:skill_cook{msgbox "Skill Info","sys/skillinfos/cook.inf";}
on:iskill_cook {
	incskill "cook",1,"cooking";
	$tmp=skillvalue("cook");
	if ($tmp==50){ event "skillup","global"; unlockcombi "salt_cookies";} 
	if ($tmp==100) { event"skillup","global";}
	...         
}

old Re: how to create skills

DontKnowToScript
User Off Offline

Quote
humer has written
yeah but i've already post this

humer has written
First of all you have to add something like this into game.inf
This achieves that you reached a new cooking skill

1
2
3
4
5
on:iskill_cook {
          incskill "cook",1,"cooking";
          $tmp=skillvalue("cook");
          if ($tmp==50){ event "skillup","global";unlockcombi "salt_cookies";}          
     }


you just have to extend it

1
2
3
4
5
6
7
8
on:skill_cook{msgbox "Skill Info","sys/skillinfos/cook.inf";}
on:iskill_cook {
	incskill "cook",1,"cooking";
	$tmp=skillvalue("cook");
	if ($tmp==50){ event "skillup","global"; unlockcombi "salt_cookies";} 
	if ($tmp==100) { event"skillup","global";}
	...         
}

oh ok

old Re: how to create skills

DontKnowToScript
User Off Offline

Quote
now i have another problem: when i cook something the event iskill cook causes this error (with some items):
'on' must not be subcordinated to conditions
whats the problem here?
can u tell what going on with this items (the error only applies to them): choclate dough and large meat...

old Re: how to create skills

bezmolvie
User Off Offline

Quote
on:use {
     on:collect{

Don't use another on: in a script until u end the first one I Think Still some probloms for me

old Re: how to create skills

Raven Shadow
User Off Offline

Quote
DontKnowToScript has written
now i have another problem: when i cook something the event iskill cook causes this error (with some items):
'on' must not be subcordinated to conditions
whats the problem here?
can u tell what going on with this items (the error only applies to them): choclate dough and large meat...

it means you edited that skill and made a typo
somewhere, make sure all required } are in thier
proper places

old Re: how to create skills

DontKnowToScript
User Off Offline

Quote
Raven Shadow has written
DontKnowToScript has written
now i have another problem: when i cook something the event iskill cook causes this error (with some items):
'on' must not be subcordinated to conditions
whats the problem here?
can u tell what going on with this items (the error only applies to them): choclate dough and large meat...

it means you edited that skill and made a typo
somewhere, make sure all required } are in thier
proper places

ok

old Re: how to create skills

DontKnowToScript
User Off Offline

Quote
HudaJan has written
one little tip:
Amount of '{' must equal amount of '}'

thanks,that worked
EDIT:ok,someone could send a couple of ideas here,i just want to add some new skills
edited 1×, last 24.08.08 08:04:29 pm
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview