- Joined
- Nov 28, 2009
- Messages
- 1,538
I am creating an adventure/hero arena map where you need to pick heroes from a tavern. You can play the map with 4 players, when alone you can pick 4 heroes, 2 players 2 heroes and 4 players each 1 hero.
So me and my friend were trying to test the map (so 2 players 2 heroes). We tested the map many times before and suddenly it crashes the not-host player when he picks his last hero (I tested around the triggers, its always the last hero that is picked that crashes the game for him). The player gets "Disconnected" while having internet just perfect.
Appearantly this is the trigger that causes it. When disabled, it doesn't crash (but the camera will be forever on the taverns and not on the hero spawn). You might want to know that I use food for each hero 1, and the max food depens on the player count (what I mentioned earlier).
So could anyone help me please
So me and my friend were trying to test the map (so 2 players 2 heroes). We tested the map many times before and suddenly it crashes the not-host player when he picks his last hero (I tested around the triggers, its always the last hero that is picked that crashes the game for him). The player gets "Disconnected" while having internet just perfect.
Appearantly this is the trigger that causes it. When disabled, it doesn't crash (but the camera will be forever on the taverns and not on the hero spawn). You might want to know that I use food for each hero 1, and the max food depens on the player count (what I mentioned earlier).
So could anyone help me please
-
Hero Pick Count
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- ((Entering unit) is A Hero) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Entering unit)) Food used) Equal to ((Owner of (Entering unit)) Food cap)
-
Then - Actions
- Selection - Select (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is A Hero) Equal to True)) for (Owner of (Triggering unit))
- Camera - Set (Owner of (Entering unit))'s camera Distance to target to 2000.00 over 0.00 seconds
- Camera - Set the camera bounds for (Owner of (Entering unit)) to NextWingVision
- Camera - Pan camera for (Owner of (Entering unit)) to (Center of NextWing) over 0.00 seconds
-
Unit Group - Pick every unit in (Units owned by (Owner of (Entering unit)) of type Hero Pick) and do (Actions)
-
Loop - Actions
- Unit - Remove (Picked unit) from the game
-
Loop - Actions
-
Else - Actions
- Game - Display to (All players matching ((Owner of (Entering unit)) Equal to (Matching player))) for 5.00 seconds the text: |cff00BFFF- Hint - ...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Last edited: