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

[Trigger] Custom Delivery (Train Units System)

Status
Not open for further replies.
So, I had an idea in making a system that would be like the starcraft terran delivery, like units get delivered to the rally point, when they are trained. So it is still not MUI, I have just been testing the triggers on how to do this. btw who anyone who would want to help me, please suggest a model of a delivery pod or a rocket ship or something. Or, I could make my own pod-like model. :)

btw here are the (NON-MUI) Triggers

  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set SummonDelay = 3.00
      • Set SummonerSpeed = 350.00
      • Set SummonerHeight = 2000.00
  • Summon
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
    • Actions
      • Set trainer = (Triggering unit)
      • Set trained = (Trained unit)
      • Set point = (Position of trained)
      • Unit - Create 1 Phoenix for (Owner of (Triggering unit)) at point facing Default building facing degrees
      • Custom script: call RemoveLocation( udg_point )
      • Set deliverer = (Last created unit)
      • Unit - Hide trained
      • Animation - Change deliverer flying height to SummonerHeight at SummonerSpeed
      • Set point = (Position of trained)
      • Set point1 = (Rally-Point of trainer as a point)
      • Wait (SummonerHeight / SummonerSpeed) seconds
      • Unit - Hide deliverer
      • Wait ((Distance between point and point1) / SummonerSpeed) seconds
      • Custom script: call RemoveLocation( udg_point )
      • Custom script: call RemoveLocation( udg_point1 )
      • Set point = (Rally-Point of trainer as a point)
      • Unit - Move trained instantly to point
      • Unit - Move deliverer instantly to point
      • Unit - Unhide deliverer
      • Animation - Change deliverer flying height to 0.00 at SummonerSpeed
      • Wait (SummonerHeight / SummonerSpeed) seconds
      • Unit - Kill deliverer
      • Unit - Unhide trained
      • Animation - Play trained's birth animation
      • Custom script: call RemoveLocation( udg_point )
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
I haven't play SC2, could you describe the system more specifically ? The only train system I know of is that of 'Age of Empires 3' where you build a trading post near the train line in a specific location the when the train gets to this position a certain resource you decide from the trading post that you built there is dropped.

As for the triggers, when you describe the system more I will try making them (in JASS) because it seems to me a good system to make.

And for the model, its hard to tell you since I haven't played the game.

Anyway, the total idea seems good.
 
Status
Not open for further replies.
Top