Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
lumberjack problem
|
Author |
Message |
jexnico
Journeyman
Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0
|
lumberjack problem
when i try to use an axe in a tree, i receive one message and my char does not hack the tree...
i know this is involved with the sphere_skills
how do i resolve this issue?
lumber:
Quote:ON=@PreStart
IF (<SRC.WEAPON.USESCUR>< 1)
SRC.SYSMESSAGE The tool is out of charges.
return 1
ENDIF
ON=@Success
SRC.WEAPON.USESCUR --
IF (<SRC.WEAPON.USESCUR>==0)
SRC.WEAPON.DESTROY 1
ENDIF
(This post was last modified: 03-12-2018 03:06 AM by jexnico.)
|
|
03-12-2018 02:38 AM |
|
|
Abuelox
Journeyman
Posts: 64
Likes Given: 0
Likes Received: 7 in 7 posts
Joined: Apr 2010
Reputation: 0
Alteria Games
|
RE: lumberjack problem
use
Code:
if !(<act.UsesMax> == 0)
ACT.MESSAGE @66,0,1 [Uses <act.UsesCur> / <act.UsesMax>]
endif
You need too make UsesMax on @create in any tool.
Example:
Code:
[ITEMDEF 0e85]
DEFNAME=i_pickaxe
TYPE=t_weapon_mace_pick
DAM=13,15
FLIP=1
SKILL=Swordsmanship
SPEED=44
//TAG.OVERRIDE.SPEED=30
VALUE=24
WEIGHT=5.0
TWOHANDS=N
RESOURCES=4 i_ingot_iron,1 i_log
SKILLMAKE=Tinkering 40.0,t_tinker_tools
CATEGORY=Provisions - Weapons
SUBSECTION=Swordsmanship
DESCRIPTION=PickAxe
ReqStr=30
TEVENTS=t_equipitem
DUPELIST=0e86
ON=@Create
HITPOINTS={36 48}
UsesMax=50
(This post was last modified: 03-12-2018 04:06 AM by Abuelox.)
|
|
03-12-2018 04:05 AM |
|
The following 1 user Likes Abuelox's post:1 user Likes Abuelox's post
jexnico (03-13-2018)
|
jexnico
Journeyman
Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0
|
RE: lumberjack problem
(03-12-2018 04:05 AM)Abuelox Wrote: use
Code:
if !(<act.UsesMax> == 0)
ACT.MESSAGE @66,0,1 [Uses <act.UsesCur> / <act.UsesMax>]
endif
You need too make UsesMax on @create in any tool.
Example:
Code:
[ITEMDEF 0e85]
DEFNAME=i_pickaxe
TYPE=t_weapon_mace_pick
DAM=13,15
FLIP=1
SKILL=Swordsmanship
SPEED=44
//TAG.OVERRIDE.SPEED=30
VALUE=24
WEIGHT=5.0
TWOHANDS=N
RESOURCES=4 i_ingot_iron,1 i_log
SKILLMAKE=Tinkering 40.0,t_tinker_tools
CATEGORY=Provisions - Weapons
SUBSECTION=Swordsmanship
DESCRIPTION=PickAxe
ReqStr=30
TEVENTS=t_equipitem
DUPELIST=0e86
ON=@Create
HITPOINTS={36 48}
UsesMax=50
where did i add that?
Quote:use
Code:
if !(<act.UsesMax> == 0)
ACT.MESSAGE @66,0,1 [Uses <act.UsesCur> / <act.UsesMax>]
endif
|
|
03-12-2018 04:14 AM |
|
|
User(s) browsing this thread: 1 Guest(s)