• 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.

Possession-type spell

Status
Not open for further replies.
Level 2
Joined
Nov 29, 2006
Messages
17
Ok I want to make a hero abbility to posses a unit until it dies or until you press an ability that appears on the unit you possess to kill it and release the hero that cast the possesion in the first place. I also want to set it up so at lvl 2 you can possess a hero for, say a minute or so. I have been using triggers just the normal wc3 map editor way and ive gotten to where i can get the hero in the unit, the hero pops out when it dies, but im having issues with the un-posses thing and, well...... just about everything else. Anyone know how to go about doing this? Thanks
 
Level 6
Joined
Oct 23, 2006
Messages
223
Here's the thing make a trigger that hides a hero(casting) and store him in a variable. Make another variable that stores the owner of the targeted hero. Give the target unit to casting player and hide his hero(casting). Add an ability to the hero unit(dummy spell) that disables the spell. Make a trigger that when he casts the disable spell the hidden hero unit is unpaused, set to the position of the unit(if u want) and gives the target hero back to the owning player. U can also add a wait to time it for 1 min of use timers to dot he effect.

How can the hero pop out and die? did u use a kill trigger?
 
Level 2
Joined
Nov 29, 2006
Messages
17
ok Ill mess with what you are saying but when I was messing with it I managed to at least get the hero to posses a unit once by using a load-type ability so that the possessed unit, when targeted actually shows the hero, like a transport so that the hero will still gain exp and stuff you know?...I think i need to back off of the transport idea though. And yes I made it so that when the possessed unit unloads the hero, the unit dies. Oh yeah one other thing I forgot to mention is that Im doing an rpg with respawning baddies, so any idea on how to make the unit go back to being neutral hostile before it dies in combat so that it will rspawn, because otherwise wont I run out of units to possess?
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
Simply make it that oncce it is cast it changes the owner of the possising hero (the caster) to nutral and hides it while the unit (target) is changed to the orignal owner of the hero and the ability is added to realse. If the unit dies the hidden hero is given back to its orignal owner and unhidden. If the realse ability is cast it gives the unit back to its orignal owner or kills it then does the unhide hero and change owner.
The hero is the same but instead you have a timer running aswell which when it ends it runs the realse actions.

Also it sounds kind of rigged considering you equivently gain the units hp to your own and although you deal the units damage you still get free damage to the target as well as equivently having killed the hero or unit.
And I recomed some kind of penalty if you die as a possesed hero since otherwise you can posses a hero and go suiciding and once you die your back at full hp ready (possiably) to posses another hero while the other hero is dead. But that is only opinion. . .

Im sure you are fimilar with jass?
Otherwise making this multincastable will be a pain for you in GUI. . .
 
Level 2
Joined
Nov 29, 2006
Messages
17
Actually I have done a single semester of visual basic last year in school but other than that I have no experience with triggers/programing sort of things or jass but i would like to
 
Level 2
Joined
Nov 25, 2006
Messages
24
You can try to change your hero to neutral, uses a trigger sharing experience, give him Locust and Ghost ability to make him totally transparent. Then, give the 'Release' ability to the targeted unit. Maybe that would do.


@Dr Supah Good : Would my idea work? THx,.
 
Status
Not open for further replies.
Top