Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
|
I have an idea about item,but need help...
|
| Author |
Message |
alucardxlx1986 
Apprentice

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0
![]()
|
RE: I have an idea about item,but need help...
(08-25-2014 11:50 PM)dagger4k Wrote: you could script something that adds a modifier to all damage done by a player, so something like this
Code:
[Events e_player]
on=@hit
var.damage = <eval <argn1> + (<argn1> + <tag.power>)>
ARGN1 = <var.damage>
on=@click
IF (<ACT.TYPE> == t_sword)
message Power +(<eval <act.tag.power>)
message <act.name>
endif
return 1
Then you can make your power up / down runes add tags to your weapons Thus giving your mele attacks more power. doing it this way you won't have to go through and change each item / add new events to each individual old and new weapon....
Code:
[Itemdef i_new_sword]
id=i_sword_viking
name = New Sword
tag.power=0
This is how I would go about it anyway... You can also add a success / fail system in adding the power up runes etc.
thanks a lot
|
|
| 08-28-2014 04:45 PM |
|
|
| Messages In This Thread |
RE: I have an idea about item,but need help... - alucardxlx1986 - 08-28-2014 04:45 PM
|
User(s) browsing this thread: 1 Guest(s)