• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

A permanently ethernal unit

Status
Not open for further replies.
Level 2
Joined
Jul 24, 2008
Messages
16
Ahoy,

Ok, so for my map I want to have a unit that is a complete spell caster, no physical attack. BUT I want it to be permanently ethernal (Meaning it can't be attacked using physical attacks, only spells, and can also only cast spells). Is there someway I can do this? (Preferable not using triggers and such)

Thanks in advance!
(Any ideas greatly appreciated!):thumbs_up:

EDIT:
Ooops, Sorry, I mean Banished as the ability / status name!

Do NOT double-post. Use the Edit button.
~Posts Merged
 
Last edited by a moderator:
Level 13
Joined
Nov 4, 2006
Messages
1,239
will be hard to do it comlpetely without triggers, but its a really easy one

  • Events
    • Unit - A Unit enters playable maparea
  • Conditions
    • triggering Unit is equal to your caster
  • Actions
    • Unit - add Ability astralform to triggering Unit
    • Unit - order triggering unit to Orc spiritwalker - astralform
    • Wait 1 sec
    • Unit - remove Ability astralform from triggering Unit
not sure if i translated the ability correctly, i guess not, but i think you know whoch one i mean
 
Level 6
Joined
Apr 14, 2008
Messages
172
  • Trigger
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Entering unit)) Equal to Footmen
    • Actions
      • Unit - Add Corporeal Form to (Triggering unit)
      • Unit - Order (Triggering unit) to Orc Spirit Walker - Ethereal Form
      • Wait 1.00 seconds
      • Unit - Remove Corporeal Form from (Triggering unit)
cleaned it up, here you go
 
Level 2
Joined
Jul 24, 2008
Messages
16
Thanks guys

This really helps, cause without it the unit would be pretty weak.
Oh and I have just one more question, I made a custom ability based off of the Stormbolt. (Or whatever one when the guy throws the hammer) Anyways, I can't seem to get the "Stun" option off of it. Actually, it doesn't even have a value / effect box! So is there some way I can fix this?

(PS : People here seem to be very "Trigger Happy"...See what I did there?):thumbs_up:
 
Level 9
Joined
Jul 24, 2007
Messages
308
For storm bolt: there is a field(s) named Duration - Hero and Duration - Unit, for Hero is stun duration for hero, Unit is stun duration for a normal unit, its not recommended to use "0", try "0.01", because sometimes 0 lasts ~5 seconds for a reason that i dotn know.
 
Level 2
Joined
Jul 24, 2008
Messages
16
Ok thanks man. Do you also know how to make it auto cast?

EDIT: Oh and the ethernal form thing isn't working. I followed exactly what you guys said but no dice.
 
Level 10
Joined
Sep 29, 2006
Messages
447
  • etheral unit
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to YourUnit
    • Actions
      • Unit - Create 1 dummy unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Banish to (Last created unit)
      • Unit - Order (Last created unit) to Human Blood Mage - Banish (Triggering unit)
i suggest you read a tutorial on how to use dummy units, they work wonders for maps

and p.s. this trigger leaks, you should read up and that too and fix it
 
Level 13
Joined
Nov 4, 2006
Messages
1,239
make a unit which is invisible, invulnerable and maybe has the locust ability, give it a modified banish ability with unlimited duration

  • Events
    • Unit - A Unit enters playable map area
  • Conditions
    • triggering unit is equal to your Unit
  • Actions
    • Unit - create 1 dummy Unit at position of triggering Unit
    • set dummy = last created Unit
    • Unit - order dummy to Bloodmage - banish
    • Wait 1 second
    • Unit - remove dummy from the game
    • set dummy = no Unit
this leaks a region

Edit: use prisonlove's version, expiration timer is better, forgot about that..., but it still leaks a region
 
Level 10
Joined
Sep 29, 2006
Messages
447
make a unit which is invisible, invulnerable and maybe has the locust ability, give it a modified banish ability with unlimited duration

  • Events
    • Unit - A Unit enters playable map area
  • Conditions
    • triggering unit is equal to your Unit
  • Actions
    • Unit - create 1 dummy Unit at position of triggering Unit
    • set dummy = last created Unit
    • Unit - order dummy to Bloodmage - banish
    • Wait 1 second
    • Unit - remove dummy from the game
    • set dummy = no Unit
this leaks a region

Edit: use prisonlove's version, expiration timer is better, forgot about that..., but it still leaks a region


this can be overwritten if more than one unit enters at the same time, i suggest you use my method^^ waits are deadly.
 
Level 2
Joined
Jul 24, 2008
Messages
16
Greatly appreciated guys, thank you! :thumbs_up:

...Now to find out what a leak is...*Moves to Newbtown*

(Sorry for being such a newb, I was never really good with triggers...oh well)
 
Level 2
Joined
Jul 24, 2008
Messages
16
Thanks prison, now I can FINALLY finish this unit!:thumbs_up:

*Cough* Rep'd *Cough*

EDIT:
Goddamn it this is pissing me off....It STILL does not work...

Ethernal
Events
Unit - A unit enters (Playable map area)
Conditions
(Unit-type of (Entering unit)) Equal to Ethernal Spirit
Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Add Banish to (Last created unit)
Unit - Order (Last created unit) to Human Blood Mage - Banish (Triggering unit)

Thats my code...Please halp.

EDIT EDIT:

Problem Solved. Close the thread now.
 
Last edited:
Level 8
Joined
Jun 25, 2007
Messages
165
Be sure of that thing:
[RAINBOW]-The banish ability for the unit cost NO MANA[/RAINBOW]
---
P.S.
I have removed leak from the trigger
  • Events
    • Unit - A unit enters (Playable map area)
  • Conditions
    • (Unit-type of (Entering unit)) Equal to Ethernal Spirit
  • Actions
    • Set Loc(the variable name you want, its a "point" variable) = (Position of (Entering unit))
    • Unit - Create 1 Dummy for (Owner of (Entering unit)) at Loc facing Default building facing degrees
    • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
    • Unit - Add Banish to (Last created unit)
    • Unit - Order (Last created unit) to Human Blood Mage - Banish (Entering unit)
    • Custom script: call RemoveLocation( udg_Loc )
More information about the leak : Click Here
 
Status
Not open for further replies.
Top