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

Shipyard problem

Status
Not open for further replies.
Level 25
Joined
Mar 23, 2008
Messages
1,813
I need to make the player buying a ship, only can do that one time, so no-one takes all the ships. Is there any trigger like:
Event - A unit buys/creates/picks?

Conditions - Player has Transport ship Equal to 0.
- Buyed/created/picked unit is equal to Transport Ship

Actions - Create one Transport Ship for Player.

Or something like that?
____________________________________
Edit: And i can ask about this too, though its related, Are you able to change how many units the Transport Ship can carry? Because atm it can carry 8 units, but i want it to only carry 1.
 

Attachments

  • Shipyard.JPG
    Shipyard.JPG
    226.9 KB · Views: 411
Level 7
Joined
Jun 16, 2008
Messages
327
  • Events
    • Unit - Shipyard 001 sells a Unit
  • Conditions
    • Unit-type of ((Selling) Unit) equal to Shipyard
    • Unit-type of ((Sold) Unit) equal to Transport Ship
  • Actions
    • Unit - Create one Transport Ship for (Owner of (Sold) unit) at (position of ((Sold) unit) facing Default Building degrees
Um, that is what I came up with after reading your trigger guess (the things you wanted in the trigger), but my trigger would create two boats :eekani: , so what I think you should do is open the object editor and make the Stock Value of the transport ship equal to one and make Stock Replenishment equal to zero, this would make it so theres only one ship avaluable in each shipyard.
 
Status
Not open for further replies.
Top