The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






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)