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

[General] Stuck and Spawn

Status
Not open for further replies.
Level 2
Joined
Nov 4, 2008
Messages
7
Hello.
I've been revising a TD (Remaking the towers, creeps, triggers and so forth...), and have come across 2 problems, that I can't fix.

First off: Whenever a wave is spawned, the game check for each players Defeated variable, and only spawns mobs for that player if he or she isn't defeated. This seems to work fine. However, for some reason, it won't set a players variable to true during the init, if that player isn't playing. This is at the very bottom of the Initialization trigger:

  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Picked player) slot status) Equal to Is playing
        • Then - Actions
          • Some stuff here
        • Else - Actions
          • Set PDefeated [(Player number of (Picked Player))] = True
          • Unit Group - Pick every unit in (Units owned by (Picked Player)) and do (Actions)
            • Loop - Actions
              • Unit - Remove (Picked unit) from the game
Unfortunately, I have no clue whatsoever why this happens.

The second problem is, that units very often get stuck when they get spawned. I don't know the cause for this, but perhaps I should use another location variable for setting the spawning point (I use the same loc to move the unit once it spawns). Another solution is to make all units within the spawn point move to the waypoint once every 1 sec (?).

Anyways, here is the map. If you have the time and knowledge, please take a look at it:
View attachment LazerusRevised.w3x

Also feel free to playtest the map or leave suggestions. :)
 
Status
Not open for further replies.
Top