[trigger=]CTS Open Tavern
Events
Conditions
(Unit-type of (Triggering unit)) Equal to Tavern
Actions
Set CTS_TempPlayer = (Triggering player)
Set CTS_Tavern = (Triggering unit)
Custom script: set udg_CTS_Key = GetUnitTypeId(udg_CTS_Tavern)
Trigger - Turn off (This trigger)
Selection - Clear selection for CTS_TempPlayer
-------- Load --------
Custom script: set udg_CTS_DummyTavern = LoadInteger(udg_CTS_Hash,udg_CTS_Key,1)
Set CTS_TempLoc = (Position of CTS_Tavern)
Unit - Create 1 CTS_DummyTavern for CTS_TempPlayer at CTS_TempLoc facing Default building facing degrees
Custom script: call RemoveLocation(udg_CTS_TempLoc)
Selection - Select (Last created unit) for CTS_TempPlayer
Trigger - Turn on (This trigger)
[/trigger]