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: #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 


Messages In This Thread
RE: I have an idea about item,but need help... - alucardxlx1986 - 08-28-2014 04:45 PM

Forum Jump:


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