• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Air Transport

Status
Not open for further replies.
Level 9
Joined
Apr 4, 2004
Messages
519
I'm in need of a little help here with triggering. I'm trying to figure out how to transport a hero from one location to another by zeppeline that is not owned by the player. It's kinda like this:

- Hero purchases "Fly to 'Location'" item.
- Hero enters a zeppeline not owned by the player.
- Hero gets transported to location.
- Hero gets dropped off at the specific location.
- Zeppeline returns to previous location.

Also I was figuring that once a hero has purchased transport to a location that if another hero tries to purchase a flight somewhere and the zeppeline isn't at place that he wouldn't be able to fly anywhere until the zeppeline returns to its spot.

Thanks in advance.
 
Level 21
Joined
Jan 5, 2005
Messages
3,515
you might be able to rig it so when the hero purchases the item a set of triggers run that go something like this:

Item purchases --> Hero Moves To Region For Pickup --> Zepplin moves to pick up hero --> Hero and zepplin within 10 range within pickup region --> Hero is teleported to secret location (perhaps out of visibility) or has all info saved and removed or made inivisible --> Zepplin moved to unload region --> Zepplin reaches unload region and Hero is teleported back or loaded from saved info or made visible in the unload location

thats how i would do it, it needs 3 triggers...one to order the unit to move to the zepplin, one to manipulate the hero when it reaches the zepplinand order the zepplin to move and finally one to reload the hero when the zepplin reaches the drop of point.

the reason i would do it this way is because it saves you hassle with changing the alliances or unit properties as the zepplin effectively dosent transport the hero at all ;)
 
Level 9
Joined
Apr 4, 2004
Messages
519
  • Transport to Mizakas House Boarding
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Triggering unit) Equal to Mikaza 0035 <gen>
      • (Item-class of (Item carried by Mikaza 0035 <gen> in slot (1 - 6))) Equal to (Item-class of (Itme-class of (Item being manipulated))
    • Actions
      • Cinematic - Disable user control for Player Group - Player 6 (Orange)
      • Unit - Order Mikaza 0035 <gen> to Move To (Center of Zeppeline Pickup <gen>)
      • Wait 1.00 seconds
      • Sound - Play Loading <gen>
      • Unit - Hide Mikaza 0035 <gen>
      • Camera - Lock camera target for Player 6 (Orange) to Ratso's Transport Zeppeline 0006 <gen>, offset by (0.00, 0.00) using Default rotation
      • Wait 0.50 seconds
      • Unit - Order Ratso's Transport Zeppeline 0006 <gen> to Move To (Center of Zeppeline Mizakas House <gen>)
  • Transport to Mizakas House Landing
    • Events
      • Unit - A unit enters Zeppeline Mizakas House <gen>
    • Conditions
      • (Triggering unit) Equal to Ratso's Transport Zeppeline 0006 <gen>
    • Actions
      • Unit - Order Ratso's Transport Zeppeline 0006 <gen> to Stop
      • Unit - Make Ratso's Transport Zeppeline 0006 <gen> face 180.00 over 0.50 seconds
      • Wait 0.50 seconds
      • Sound - Play Loading <gen>
      • Unit - Move Mikaza 0035 <gen> instantly to (Center of Zeppeline Mizakas House <gen>), facing 270.00 degrees
      • Camera - Reset camera for Player 6 (Orange) to standard game-view pver 0.00 seconds
      • Camera - Pan camera for Player 6 (Orange) to (Position of Mizaka 0035 <gen>) over 1.00 seconds
      • Unit - Unhide Mikaza 0035 <gen>
      • Item - Remove (Item carried by Mikaza 0035 <gen> of type Fly to Mizaka's House)
Problem for now; Mizaka gets the "Fly to Mizaka's House" item but then nothing happens.
 
Level 21
Joined
Jan 5, 2005
Messages
3,515
you have to change triggering unit to hero manipulating item and also your second condition about item-classes is useless i think? try something more like this, but with all you actions and your hero name and your item name:

  • Oh Noes
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Unit-type of (Hero manipulating item)) Equal to Paladin
      • (Item-type of (Item being manipulated)) Equal to Ring of Protection +5
    • Actions
      • Unit - Order (Hero manipulating item) to Move To (Center of Region 000 <gen>)
also you will want to get rid of the leaks in your triggers
 
Status
Not open for further replies.
Top