xAnaMorphine
Active Member
- Reaction score
- 43
Well. Throw all that code away. Now just create a trigger which fires when a hero of the specific type is entering the map. then create the inventory for this unit (= GetTriggerUnit() )
So my good likes like this now...
Edit: Wtf I was just writing? * So my trigger looks like this right now...
Trigger:
- Hero Selection
- Events
- Unit - A unit enters Hero Selection <gen>
- Conditions
- Or - Any (Conditions) are true
- Conditions
- ((Entering unit) is A Hero) Equal to True
- (Unit-type of (Entering unit)) Equal to ALPHA
- Conditions
- Or - Any (Conditions) are true
- Actions
- Unit - Move (Entering unit) instantly to (Center of Leaf Town <gen>)
- Set TEMP_Point = (Position of (Entering unit))
- Camera - Pan camera for (Owner of (Entering unit)) to TEMP_Point over 0.00 seconds
- Custom script: call RemoveLocation (udg_TEMP_Point)
- Selection - Select (Entering unit) for (Owner of (Entering unit))
- Unit Group - Pick every unit in (Units in Hero Selection <gen> owned by (Owner of (Entering unit))) and do (Actions)
- Loop - Actions
- Unit - Remove (Picked unit) from the game
- Loop - Actions
- Events