I used the Butcher Knife graphic (0x13f6) and renamed it. Will this affect or replace the butcher knife item, or are there now two items that share that same graphic? I know that this was not a problem in POL, but not sure with Sphere.
Quote:[ITEMDEF 0x13F6
DEFNAME=i_pruning_knife
NAME=Pruning Knife
TYPE=T_WEAPON_FENCE
FLIP=1
DAM=10,11
SPEED=2.0
SKILL=Fencing
REQSTR=10
TWOHANDS=N
WEIGHT=1
RESOURCES=3 i_ingot_iron
SKILLMAKE=BLACKSMITHING 0.0
DUPELIST=0x13F7
TEVENTS=t_pruningknife
CATEGORY=Provisions - Weapons
SUBSECTION=Daggers
DESCRIPTION=Dagger
ON=@Create
HITPOINTS={36 48}
[ITEMDEF 0x13F7]
DUPEITEM=0x13F6
Quote:[ITEMDEF 0cf3]
//fallen log
DEFNAME=i_log_fallen
VALUE=1
CATEGORY=Vegetation
SUBSECTION=Trees
DESCRIPTION=Fallen Log
[ITEMDEF 0cf4]
//fallen log
DUPEITEM=0cf3
[ITEMDEF 0cf5]
//fallen log
DUPEITEM=0cf3
[ITEMDEF 0cf6]
//fallen log
DUPEITEM=0cf3
[ITEMDEF 0cf7]
//fallen log
DUPEITEM=0cf3
Quote:REGIONTYPE r_default-fallen-log t-fallen_log
// Default fallen log resources
RESOURCES=5.0 mr_blood_moss
Quote:REGIONRESOURCE mr_fallen_log (or should it be log_fallen?)
SKILL=80.0,100.0 (what exactly does this mean?)
AMOUNT=1,5
REAP=i_blood_moss
REGEN=60*60*10
Quote:[TYPEDEF t_pruning_knife]
ON=@DClick
TARGET
RETURN 1
ON=@TargOn_Ground
If <targp.type>> == t_fallen_log
If <src.distance <src.targp>> >= 3
src.sysmessage That is too far away.
return 1
endif
If !<src.canseelos <src.targp>>
src.sysmessage You cannot see that.
return 1
endif
I am sure this is not quite right, and am a bit lost afer this. I assume it needs to perform a check against the character's Foraging Skill. Maybe:
Quote:if <r<src.foraging>> > <eval <src.foraging>
And maybe an ON=@Success command? Does it need to check whether there is enough resource to harvest, perhaps using a worldgem command?
I think I see the process, just not sure about the syntax, and what is performed automatically:
1. I have targeted an appropriate item.
2. Is there is enough of the item to harvest? If yes:
3. Is my skill high enough for the attempt? If yes:
4. Perform a skill check against Foraging (determined by Skill in RegionResource?).
5. If successful one blood moss is added to backpack.
6. On fail receive failure message in Foraging Skill file.