• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Invcincible Unit

Status
Not open for further replies.
Level 5
Joined
Oct 12, 2004
Messages
109
Alright, im stuck after trying to attempt this forever.

I made a unit that i want to be invulnerable. But i want it to be if someone has a specific buff on them only they can dmg that unit. Now i have the physical dmg correct. But i need spells to effect him too. How can i make it so that only a person who has a buff can dmg a unit with their attack and magic, while nobody else can or they do very little dmg.

"This is the same exact thing in golem wars in Rakion if any1 has ever played it before."

Thanks
 
Level 6
Joined
Feb 12, 2008
Messages
207
i think you should discard the invulnerable skill...
the best idea i can get for that what you need, is to first make an ability based on an aura with no effects at all, just giving a buff called "Invulnerability" or something. Then, something like this would work
  • NoAttack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) has buff Invincible) Equal to True
      • ((Attacking unit) has buff InvincibleKiller) Equal to False)
    • Actions
      • Unit - Order (Attacking unit) to Stop
  • NoSpell
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • ((Target unit of ability being cast) has buff Invincible) Equal to True
      • ((Casting unit) has buff InvincibleKiller) Equal to False)
    • Actions
      • Unit - Order (Casting unit) to Stop

Maybe not the best idea... but is the only one i can think of :)

--------------------------

Edit: Maybe another good idea would be to make the unit have a modified armor, and changing the values in the constants, like using divine and making only chaos damage it. then just change the spell damage on the tables and spells should damage very little or nothing at all.
Then you could make a skill or item that changes the attack type of the unit (i think thats something related to orbs if im not wrong)
 
Level 6
Joined
May 13, 2007
Messages
231
You could just input all the spells you plan to use into a trigger and have a set amount (Like if the abilities level up, it will have a CONSTANT up value on the damage, or up by a %) and just program it too damage the target via trigger. Tell me if this sounds confusing, if so I'll go into it alittle deeper.
 
Level 4
Joined
Jan 2, 2008
Messages
103
This would work if the unit is on the map already

Invulnreble
Events
Unit - A unit comes within 300.00 of Invincinable 0000 <gen>
Conditions
((Triggering unit) has buff I can kill invinciable Man.) Not equal to True
Actions
Unit - Make (Triggering unit) Sleep when unprovoked

You could do that, or make a silence ability be casted on the unit coming near the Invinciable Unit.
 
Level 6
Joined
Feb 12, 2008
Messages
207
no, he wants a unit to be invincible. But then if you get a buff (INVULNERABLE PWN3R BUFF) you are able to kill that unit. And that goes for normal attacks as well as spell dmg.
 
Level 22
Joined
Feb 26, 2008
Messages
892
A solution to this problem could be done with armor.
If you were to give the invulnerable unit Divine armor, then only Chaos damage would affect it, while still allowing it to be attacked.
And I don't think that Divine armor stops spells, so you should be good there.

There are a couple ways you could approach your buff.

1. Change the hero's attack with the use of something like an orb ability.

2. Use a trigger with the Damage Target action when the Divine armored unit takes damage from your unit. This would probably be a bit more tricky.

There are some suggestions. If you need help implementing them, check for some tutorials first, then feel free to post back. :D
 
Level 5
Joined
Oct 12, 2004
Messages
109
hm, i can stop physical attacks but i can't seem to find a way to stop spells from every other heros except the one that has the buff.

I thought of maybe having it so when the unit takes dmg from someone that doesnt have the buff it just regains it but then the can kill it if it has low health...

im so stuck :(
 
Level 6
Joined
Dec 28, 2007
Messages
111
You could do like..
  • Events
    • Unit - A unit is attacked..
  • Conditions
    • If attacked unit has buff Invincible
  • Actions
    • If all conditions (if) are true then do actions (then) else do actions (else)
      • Conditions - If
        • Unit - Attacking unit has Invincible pwner buff :P
      • Actions - Then
        • Do Nothing
      • Actions - Else
        • Unit - Order unit to Stop
 
Level 5
Joined
Oct 12, 2004
Messages
109
You could do like..
  • Events
    • Unit - A unit is attacked..
  • Conditions
    • If attacked unit has buff Invincible
  • Actions
    • If all conditions (if) are true then do actions (then) else do actions (else)
      • Conditions - If
        • Unit - Attacking unit has Invincible pwner buff :P
      • Actions - Then
        • Do Nothing
      • Actions - Else
        • Unit - Order unit to Stop

Thats what i have for the physical dmg, but spells is the problem.
 
Level 15
Joined
Mar 9, 2008
Messages
2,174
Oh the answer was under your noses for whole chat. Make unit able to attack invunerable units, then create spells that can be casted on invunerable units.
I might be wrong but give it a try.
 
Level 4
Joined
Jun 1, 2007
Messages
92
divine armor can work with spells. Basic made spells completely from the object editor have "spell" damage, which is modified through the gameplay constants. And for trigger spells that use the damage target/area function, you could use an if/then/else to check if the unit has the buff, then instead of dealing the really big damage, just do like 1 or so.
 
Status
Not open for further replies.
Top