Forum

> > Stranded II > General > how to create skills
ForenübersichtStranded II-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch how to create skills

16 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt how to create skills

Gast

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

alt Re: how to create skills

bezmolvie
User Off Offline

Zitieren
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;

alt Re: how to create skills

DontKnowToScript
User Off Offline

Zitieren
Bloodshot hat geschrieben
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

alt Re: how to create skills

humer
User Off Offline

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

alt Re: how to create skills

DontKnowToScript
User Off Offline

Zitieren
humer hat geschrieben
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

alt Re: how to create skills

humer
User Off Offline

Zitieren
Dontknowtoscript hat geschrieben
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

alt Re: how to create skills

DontKnowToScript
User Off Offline

Zitieren
humer hat geschrieben
Dontknowtoscript hat geschrieben
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

alt Re: how to create skills

humer
User Off Offline

Zitieren
yeah but i've already post this

humer hat geschrieben
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";}
	...         
}

alt Re: how to create skills

DontKnowToScript
User Off Offline

Zitieren
humer hat geschrieben
yeah but i've already post this

humer hat geschrieben
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

alt Re: how to create skills

DontKnowToScript
User Off Offline

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

alt Re: how to create skills

bezmolvie
User Off Offline

Zitieren
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

alt Re: how to create skills

Raven Shadow
User Off Offline

Zitieren
DontKnowToScript hat geschrieben
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

alt Re: how to create skills

DontKnowToScript
User Off Offline

Zitieren
Raven Shadow hat geschrieben
DontKnowToScript hat geschrieben
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

alt Re: how to create skills

DontKnowToScript
User Off Offline

Zitieren
HudaJan hat geschrieben
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
1× editiert, zuletzt 24.08.08 20:04:29
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtStranded II-ÜbersichtForenübersicht