Post Reply 
 
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



Post: #1
I have an idea about item,but need help...
First of all,sorry for my poor English...
I want a system like one of Dungeon and Fighters system..
That system make weapons and amors power-up..
I don't know other country's DNF...But in China,it's not always successed...maybe get power-down or broken and disappeared..

For example
an axe
I use that system to make it power up,and shows +1 axe,and damage get little higher,and power up this +1 axe,show +2 axe,and damage get higher again,but it's not always success like just i said,maybe +7 axe after do this,it will down to +4 axe,or even broken...

I want somebody can help me,inspire me.

Thanks a lot...
08-23-2014 01:05 PM
Find all posts by this user Like Post Quote this message in a reply
dagger4k
Journeyman
*

Posts: 194
Likes Given: 1
Likes Received: 12 in 12 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: I have an idea about item,but need help...
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.
(This post was last modified: 08-25-2014 11:57 PM by dagger4k.)
08-25-2014 11:50 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes dagger4k's post
alucardxlx1986
Apprentice
*

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #3
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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)