• 0

    posted a message on How to: Prevent Walling in a Tower Defense
    @ST4RKiLL3R: @SouLCarveRR: If you're interested at all in the technical side of it, 65536 is equivalent to 2^16, therefore it is the highest unsigned integer you can represent with 16 bits, or two bytes, (assuming you start counting from 1 instead of 0, which is a bit strange imo). A common programming practice is to set aside the highest possible value of a data type to represent "infinity," which is what blizzard seems to have done here.

    Sorry, I'm a programmer irl, and I know this is probably way more detail than you ever wanted to know, but I thought you might be curious.
    Posted in: Triggers
  • 0

    posted a message on How to: Prevent Walling in a Tower Defense
    I haven't seen any tutorials on how to prevent players from walling off (creating a wall of towers that ground units cant get past) in a tower defense so I thought I'd share the way I do it. Feel free to let me know if you find a better way to do it. For this to work, you will need to make sure your tower's footprint is something like "Footprint 1x1" NOT "Footprint 1x1 (Contour)," which is a mistake I originally made.

    In the trigger editor I do this:


    Event:
    Any unit construction progress is Started


    Actions:
    if Pathing cost between Spawn Point and End Point == 65536
    then
    Unit - Kill (Triggering progress unit)
    Posted in: Triggers
  • 0

    posted a message on Prevent "Our forces are under attack" alert

    @Genopath: Go

    Thanks! this worked perfectly.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Setting up teams

    @Cbasz95: Go

    You could go into the trigger editor and use the "Set Alliance" action for every combination of players in your initialization trigger.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Prevent "Our forces are under attack" alert

    Currently when units are attacked offscreen the game pings the location and plays the sound "Our forces are under attack." I would like to disable this for my custom map, but have been unable to figure out how to do it. Does anyone know?

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.