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

[HELP] Bearform combine with Mount/Unmount

Status
Not open for further replies.
Level 9
Joined
Aug 7, 2009
Messages
380
Yep, Could it be?
What i mean is: can i make a unit while activated the bearform ability to mount another unit and comes to another unit type change? It's quite nervous if there's some bugs around or causing map to trashed etc..
Anyone know about it, please help me out :ogre_haosis:
thanks
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
Ive tested it. When you mount the unit is killed so you better save his levels, abilities learned and so on to some variables and remove it from the game. When you dismount you retrieve them.
Ive done Potm + hippo = demon hunter and added to demon hunter the dismount ability, when i dismounted the game created NEW Potm(Priestress of the moon) and hippogryph.
 

Attachments

  • mountdismount.w3x
    16 KB · Views: 44
Level 9
Joined
Aug 7, 2009
Messages
380
I've worked it out with triggering. BUT, my only problem here is i'm going to use some custom learning abilities (buying abilities from shops). How could i save them and ... add them back on?
Or i should save the number of items (skills) they've bought and give them back those number of items so they're back on?
Please give some suggestions
 
Level 9
Joined
Aug 7, 2009
Messages
380
For the test map, please let me know if this would work the way i wanted (triggering way)
I used 2 triggers for it (excluding dismount):
  • mount
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Mount Horse
    • Actions
      • Set General_Units[2] = (Triggering unit)
      • Set Mount_ID = (Custom value of General_Units[2])
      • Set Horse_Group = (Units owned by (Owner of (Triggering unit)) of type Adult Horse)
      • Unit Group - Pick every unit in Horse_Group and do (Actions)
        • Loop - Actions
          • Set General_Units[3] = (Picked unit)
          • Unit - Set the custom value of General_Units[3] to Mount_ID
          • Unit - Order General_Units[3] to Orc Shaman - Purge General_Units[2]
      • Memory Leak - Destroy Horse_Group
And Pick up:
  • pick up
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Pick up hero
      • (Unit-type of (Target unit of ability being cast)) Equal to Knight
    • Actions
      • Set General_Units[4] = (Target unit of ability being cast)
      • Set Mount_ID = (Custom value of General_Units[4])
      • Unit - Remove (Triggering unit) from the game
      • Unit - Replace General_Units[4] with a Knight (Mounted) using The old unit's relative life and mana
      • Unit - Set the custom value of (Last created unit) to Mount_ID
They seems to work well. But as i said in the reply above, how should i solve the ability problem in going back (dismount)
Purge here is an target ability which is added to the horse to make him run to the hero ^^!
 
Status
Not open for further replies.
Top