Forum

> > Stranded II > Scripts > Script for custom crafting recipes
Forums overviewStranded II overview Scripts overviewLog in to reply

English Script for custom crafting recipes

4 replies
To the start Previous 1 Next To the start

old Script for custom crafting recipes

Xephoriah
User Off Offline

Quote
I feel like that the crystal blade and other swords should be craftable, is there way to make a script on how to make your own custom recipes so i can obtain the crystal sword without always using cheats?

old Re: Script for custom crafting recipes

Hurri04
Super User Off Offline

Quote
no, there is no way to add crafting recipes just by scripts. you have to edit the definition files for that.

of course, if you just wanted to make an npc trader sell you the sword for the same materials that you'd use as crafting materials yourself, that IS possible with just scripts.

old Re: Script for custom crafting recipes

Nova
User Off Offline

Quote
user Hurri04 did already say it, but you can't make a new combination with only scripts. You need to edit the files for this.


Go into this directory of Stranded II: Stranded II\mods\Stranded II\sys\
Now open this file with a text editor like Notepad or Notepad++: combinations_weapons.inf
Now copy one of the entries to the end of the file. An entry starts with combi=start and ends with combi=end
Now you can change the items you need for the combination. req defines, which items you need to make the new item. gen says, which item you want to make. The crystal blade has the type id 76. So you have to write gen=76 for the new item. The crystals have the type id 2 and 3. If you want to make the sword out of 2 small crystals and 1 normal crystal, write req=2,2 and in the next line req=3 (the ,2 after the first lines says you need 2 items for the combination).
If you want to need a hammer for the combination, also add this in a new line: req=30,1,stay (stay says that the item will not be consumed when you combine.)

If you have further questions, just ask. If you have a problem, please copy the new entry you did make and post it.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview