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

Problem with loading into a transport

Status
Not open for further replies.
Level 2
Joined
Jun 22, 2012
Messages
8
Hey everyone.
I'd like to ask, how to make a transport to load and enemy into itself, without using triggers or scripts. I change allowed targets graph, adding enemies there, but it still shows me that an enemy cannot be loaded. Any suggestions?
 
Level 2
Joined
Jun 22, 2012
Messages
8
You have to have full shared unit control to load a unit. What's wrong with using a trigger? Triggers exist when you need more control over something otherwise unavailable.
Okay, then how do I use the trigger? Like, every time I use the ability, it loads any unit I can choose, on the map.
 
Does the ability have a range limit? The trigger basically would get broken doen into these steps:

Make a spell or choose one which does 0 damage and has 0 effects. Finger of Death is easy to modify to do this. This ability will be used to target a unit it wishes to load and the triggers will handle the rest.

  • Load Enemy
    • Events
      • A unit is issued a target order
    • Conditions
      • (Issued order) equal to <order of your custom spell>
      • (Unit-type of (Triggering unit)) Equal to <your transport>
    • Actions
      • Set TempLoadUnit = (target unit of issued order)
      • Player - Change ownership of TempLoadUnit to (Triggering player) -------- This is the owner of the "zeppelin"
      • Unit - Order (Triggering unit) to Load TempLoadUnit
At this point, you've changed the ownership of the loaded unit to the owner of the zeppelin. It can stay an ally safely UNTIL it is unloaded. Or does it ever get unloaded?
 
Level 2
Joined
Jun 22, 2012
Messages
8
Yes, the ability has unlimited range.
It won't get unloaded, because the unit, that contains the enemy unit will be turned into another unit, and then disappear.
Thank you for your help, but I still have some questions. Would you be so kind to answer them, please?
1)Would it allow me to load ANY enemy units? As in, flying units, buildings, and such?
2)Would this loading work for all units I click on?
3)If I will need to load a friendly or neutral flying unit, can I use the same trigger to do so?
 
Flying units and buildings can be hidden or removed and the transport unit can be replaced. Now that you break it down some more,
you may want to look into the mount hippogriff ability in Object Editor as I think that could work best for the "load" ability since you want to change them into a different unit type. The trigger would be almost the same as the one I gave you, other than instead of ordering to load you'd order to mount.
 
Level 2
Joined
Jun 22, 2012
Messages
8
Thanks for your suggestion. I'll try it and write, if something will go wrong.

Damn it, it didn't work. I guess I don't know how to treat the triggers whatsoever. I couldn't even find that condition, like on the screenshot, with the question mark. I only have map initialization, decoration, dialogue, game, player, time and unit.
Could I just get a trigger, that, like, will modify mind control ability? So when I use this ability, it changes the ownership of any units to my colors, regardless of it's level and type, even if it's a zeppelin, that normally cannot be controlled? So this ability could change the ownership of any unit that I can choose on the map, no matter what.
I think it'll be easier, than that thing with loading/unloading. I just need to know how to make a trigger for that. I hope you will help me with that. Sorry for confusing.
 
Last edited by a moderator:
Level 2
Joined
Jun 22, 2012
Messages
8
Still, nothing happens. I have no idea what to do. I either don't have the same events and conditions, or don't know how to work with them. I also can't make an issued order to equal to my custom spell.
 
Status
Not open for further replies.
Top