Login
Register
Menu
Home
Forum
JassDoc
Types
Functions
Variables
Help
Chat
Media
Search
Search posts
WC3 JASS.com
"The Jass Vault" plus vJASS and Zinc
WC3 Modding Information Center
Forum
Warcraft (WC3) Modding
Triggers & Scripting
WC3JASS.com
Coding Help
Detecting Overdamage
Warcraft III:
Maps
Models
Skins
Icons
Spells / Systems
Tools
Tutorials
Snippets
JASS vJASS Spells and Systems
Tutorials
Chat @Discord
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation
-
Zinc documentation
-
WC3 Optimizer documentation
Detecting Overdamage
Coding Help
Started by
NaughtySmurf
Views
5862
Replies
2
Users
2
2
1
Pages:
1
Go Down
0 Members and 1 Guest are viewing this topic.
NaughtySmurf
Newbie - level 1
Posts:
9
WC3 Models: 0
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 0
WC3 Skins: 0
WC3 Icons: 0
WC3 Spells: 0
Reputation:
0
User
Detecting Overdamage
on:
June 22, 2015, 12:34:17 PM
Is there a way to detect the amount of damage that a spell or attack does beyond the lethal part?
Example: Spell does 300 damage. Target has 100 life and no damage reduction towards spell damage. Difference is 200, this is what I need.
In a scenario where units have different damage reductions this will be kind of complicated.
I was thinking about dealing a little damage (A), getting the actual damage done (B) and calculating the reduction from the quotient (A-B) / A. Then one could calculate the damage needed to kill this unit and thus get the difference. I wonder if there's a more efficient way though, because these seems rather complicated. Help please
EDIT: Cannot remove my own post. I know how it's done. /thread
«
Last Edit: June 22, 2015, 04:40:56 PM by NaughtySmurf
»
moyack
Site Owner
Administrator
Posts:
971
WC3 Models: 20
WC3 Tutorials: 17
WC3 Tools: 19
WC3 Maps: 12
WC3 Skins: 0
WC3 Icons: 1
WC3 Spells: 16
Reputation:
1153
Site Admin - I love fix things
Re: Detecting Overdamage
Reply #1 on:
July 11, 2015, 11:17:04 AM
Just for information for other users, this can be done with a damage detection system or giving a good use of
GetEventDamage
function, with the event
TriggerRegisterUnitEvent
.
WC3 Modding Information Center
NaughtySmurf
Newbie - level 1
Posts:
9
WC3 Models: 0
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 0
WC3 Skins: 0
WC3 Icons: 0
WC3 Spells: 0
Reputation:
0
User
Re: Detecting Overdamage
Reply #2 on:
July 25, 2015, 05:57:00 AM
Since you are talking about Damage Detection. I think it is so hard to decide which one to use because there are so many out there, and some are not finished or just not effective anymore. Could you recommend a decent one? I'm looking for a system with the possibility of a little customization (like damage block, different damage types detected) but also don't want to create 10 abilities myself and look for 5 different libraries to make it work.
Print
Pages:
1
Go Up
« previous
next »
WC3 Modding Information Center
Forum
Warcraft (WC3) Modding
Triggers & Scripting
WC3JASS.com
Coding Help
Detecting Overdamage
PortaMx-SEF 1.54
|
PortaMx © 2008-2015
,
PortaMx corp.
Search
Username
Password
Always stay logged in
Forgot your password?