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

How to swap attacktypes/ranges

Status
Not open for further replies.
Level 10
Joined
Jun 16, 2007
Messages
415
I have a class called sniper. I have a spell called Melee Combat.
Sniper has 1600 range and Bullet Damage.
I want him to turn into a 100 Range (melee) with Melee Damage.

Thing is: I can't use metamorphosis/similar because it fucks up an important system that I am using.
Is there a way to alternate between those 2 attack types, without changing the unit?
 
Level 6
Joined
Aug 13, 2008
Messages
197
hmm...how bout u prepair 3 abilities for your sniper
1. edit flying machine bomb to target range 1600
2. edit flying machine bomb to target melee 100
3. edit defend to give 0 bonus and have devotion aura (which also gives 0 bonus)
now give the first and third abilities to the sniper
ok, so your trigger would be:
Event -a unit begins casting an ability
Action -if - ability being cast = defend and unit have devotion aura = true
-than - add ability 2 (melee) to triggering unit
remove ability 1 (range) to triggering unit
-else -add ability 1 (melee) to triggering unit
remove ability 2 (range) to triggering unit

well this is what i can come up in GUI and i am sure is far from the best so i am open to suggestions.
 
Level 10
Joined
Jun 16, 2007
Messages
415
It is an incredibly sick system, that allows me to equip items, swap pages, pick up stuff with a full inventory, etc. To add the boni it uses hidden spellbooks, etc, which seem to disappear once I change the unit via metamorphosis or similar.

I will try using Uproot, I'll post here if this fixes my problem.
 
Status
Not open for further replies.
Top