- Joined
- Sep 28, 2016
- Messages
- 47
Hi all,
I have some items that are added to a player-owned marketplace after an upgrade finishes, but how do you get units to be added to a player-owned marketplace? I've used the same method, more or less, and it's not working.
Research Trig:
Doesn't work If I add the units to the marketplace in the object editor, they will show up in game, no problem. But I want them added only after the upgrade finishes.
I have some items that are added to a player-owned marketplace after an upgrade finishes, but how do you get units to be added to a player-owned marketplace? I've used the same method, more or less, and it's not working.
Research Trig:
Code:
ResearchShip HauntedBerg
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Haunted Bergantina Ritual
Actions
Set RESEARCH_HauntedBerg[(Player number of (Owner of (Researching unit)))] = True
Unit Group - Pick every unit in (Units owned by (Owner of (Researching unit)) of type Pirate Shipyard (Outpost)) and do (Actions)
Loop - Actions
Neutral Building - Add Haunted Bergantina Remember to change the values in the trigger for refunds. to (Picked unit) with 1 in stock and a max stock of 1
Doesn't work If I add the units to the marketplace in the object editor, they will show up in game, no problem. But I want them added only after the upgrade finishes.