I've encoutnered a problem, that I cannot get fixed no matter how. Perhaps you can help me out?
I have added new materials to craft armors and weapons from. It worked fine at first, but then I wanted to modify the blacksmith system.
The new system requires coal to lit a forge inorder for it to be used.
Code:
[ITEMDEF 0fb1]
//forge
//**Is there a type for this? Smithing type?
DEFNAME=i_forge
TYPE=T_FORGE
RESOURCES=20 i_rock_plain, 30 i_KINDLING
WEIGHT=500
CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Forge 1
ON=@DCLICK
IF <tag0.lit> > 0
message @036 Forge is already lit
RETURN 1
ELSE
IF (<src.restest <DLOCAL.lega> i_coal>)
sound=550
src.consume <DLOCAL.lega> i_coal
src.sysmessage @031 It cost 1 coal to lit the forge
src.newitem i_forge_fire
new.p=<p>
new.nudgeup 8
new.link=<src.uid>
new.timer=60*10
src.say @036 <name> is lit and ready to be used
tag0.lit=1
return 1
ELSE
message @025 You need to have the coal in your backpack
return 1
ENDIF
ENDIF
And once the forge is lit, you can use the anvil (I couldn't find a way to give a message if you were further away then 3, perhaps that can be solved somehow, but that'd be a bonus).
Code:
[ITEMDEF 0faf]
//anvil
DEFNAME=i_anvil
TYPE=T_ANVIL
SKILLMAKE=BLACKSMITHING 30.0, TINKERING 56.0,t_tinker_tools
RESOURCES=20 i_ingot_iron, 1 i_LOG
FLIP=1
WEIGHT=255
CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Anvil (N)
DUPELIST=0fb0
ON=@DCLICK
FORITEMS 3
WHILE <tag0.lit> == 01
src.SKILLMENU=sm_blacksmith
RETURN 1
ENDWHILE
ENDFOR
Now here's the problem. I won't let me to craft anything! Here take a look;
Code:
[SKILLMENU sm_blacksmith]
Blacksmithing
ON=i_ANVIL Repair
TEST=BLACKSMITHING 1.0
REPAIR
ON=i_rock_plain Stone Items
SKILLMENU=sm_items_stone
[SKILLMENU sm_items_stone]
Stone Items
ON=i_sword_viking Weapons
SKILLMENU=sm_weapons_stone
ON=i_bone_chest Armors
SKILLMENU=sm_stonearmor_armor
[SKILLMENU sm_weapons_stone]
Stone Weapons
ON=i_gold Info
sysmessage @025 Stone weapons
ON=i_stone_dagger <name> (<resmake>)
MAKEITEM=i_stone_dagger
ON=i_stone_sword_broad <name> (<resmake>)
MAKEITEM=i_stone_sword_broad
ON=i_stone_sword_2h <name> (<resmake>)
MAKEITEM=i_stone_sword_2h
ON=i_stone_axe <name> (<resmake>)
MAKEITEM=i_stone_axe
ON=i_stone_axe_large <name> (<resmake>)
MAKEITEM=i_stone_axe_large
ON=i_stone_mace <name> (<resmake>)
MAKEITEM=i_stone_mace
ON=i_stone_maul <name> (<resmake>)
MAKEITEM=i_stone_maul
ON=i_stone_hammer_war <name> (<resmake>)
MAKEITEM=i_stone_hammer_war
[SKILLMENU sm_stonearmor_armor]
Stone Armor
ON=i_gold Info
sysmessage @025 Stone armors
ON=i_stone_helm <name> (<resmake>)
MAKEITEM=i_stone_helm
ON=i_stone_chest <name> (<resmake>)
MAKEITEM=i_stone_chest
ON=i_stone_bracers <name> (<resmake>)
MAKEITEM=i_stone_bracers
ON=i_stone_gauntlets <name> (<resmake>)
MAKEITEM=i_stone_gauntlets
ON=i_stone_legguards <name> (<resmake>)
MAKEITEM=i_stone_legguards
I added the gold coin just to see if the skillmenu works at all, and it does. That is the only item that shows up in the skillmenu. So then i thought perhaps I don't have the material needed to craft these stone items.
I added
100 i_stone and tried to craft this;
Code:
[ITEMDEF i_stone_helm]
ID=i_helm_open
NAME=Stone Helmet
TYPE=T_ARMOR
RESOURCES=15 i_stone
WEIGHT=12
ARMOR=20
REQSTR=40
SKILLMAKE=BLACKSMITHING 30.0
CATEGORY=Equipments - Armor
SUBSECTION=Stone Armor
DESCRIPTION=Helmet
ON=@Create
COLOR=color_o_stone
HITPOINTS={30 40}
But it won't show up on the skillmenu. What have I missed?