• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need help decreasing Hit rate

Status
Not open for further replies.
Level 7
Joined
Mar 16, 2008
Messages
348
I'm making a weapon that gives more attack speed and damage,and it must decrease my hit rate to 10%, how do i reduce my hit-rate?
 
Level 4
Joined
Dec 16, 2007
Messages
134
I think hit-rate means the accuracy of the unit on attacking.
The normal hit-rate is 100% and if he gains that weapon, his hit-rate
will become 90% or in other words. 10% of the unit's attack will miss.
 
Level 12
Joined
Oct 23, 2007
Messages
565
I think i know
Im not sure bout this though

make a trigger that when ur hero picks up the item
all enemy units gain evasion[edit it to suit ut needs]
when hero dorps the item remove evasion

This will be really hard[for me] to trigger and mite only work in a single player game. This might have alot of problems as well... but its the only way that i can think off...

Tell me if u need more help, ill be glad to give some :grin:


EDITED

GOT IT!!!!!
another guy wanted tha same thing so i made a tutorial no how to do it 8D
here it is [eaz item miss system]
http://www.hiveworkshop.com/forums/showthread.php?t=63131
 
Last edited:
Level 4
Joined
Dec 16, 2007
Messages
134
Putting evasion to all enemy units will cause big problem.
One thing is all units will have a chance to miss on all
the enemy units.
 
Level 7
Joined
Apr 5, 2006
Messages
128
Code:
Set TempPoint = (Position of (Triggering unit))
Unit - Create 1 Dummy for Neutral Hostile at TempPoint facing Default building facing degrees
Unit - Add Curse (Dummy Item) to (Last created unit)
Unit - Add a 3.00 seconds Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Banshee - Curse (Triggering unit)

Curse (Dummy item) should have unlimited duration. To remove it:

Code:
Remove MissChance
    Events
        Unit - A unit Loses an item
    Conditions
        (Item-type of (Item being manipulated)) Equal to *WEAPON*
    Actions
        Unit - Remove Curse (Dummy Unit) buff from (Triggering unit)

If removing the buff doesn't work (Sometimes it doesn't...), create another dummy that will cast either Devour Magic, suicide through Detonate, or any other means to dispel Curse.
 
Status
Not open for further replies.
Top