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


Messages In This Thread
RE: I have an idea about item,but need help... - dagger4k - 08-25-2014 11:50 PM

Forum Jump:


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