• 0

    posted a message on Could some one take a look at my trigger?

    I think you haven't taken a look at my map because what your describing isn't what's in it. I know the problem, I'm just not sure why I'm having it. Below are the generalized steps I'm taking (assuming the grid is selected for 4x4)

    • 1) I'm creating a grid of boxes 4x4 and filling in with 15 dialog items with text labeled 1 through 15 (last location is an empty spot, no dialog item)
    • 2) I'm storing a x / y coordinate for each dialog item
    • 3) I want to randomly swap two dialog boxes
    • 4) I generate 2 random numbers in a range 0 through 15 (so it includes the empty spot as a possible swap location)
    • 5) I use local ints to help swap the two coordinate values for both boxes
    • 6) I have two if/then/else for both swap actions, if one of the locations != current location of the empty spot, move the dialog item, else do nothing. This is suppose to make it so it doesn't try to swap a non-existent dialog item.

    The problem I have is the if/then/else. Some reason it seems to think if either the x OR y is the same as the empty spot's cord, do nothing. If I remove the conditions all together, it works fine. I want to know what the problem is, this is really bugging me.

    Posted in: Triggers
  • 0

    posted a message on Could some one take a look at my trigger?

    Sorry for the late response and sorry for the rather vague explanation. I was doing things a bit different than you. I created a dialog box and was randomly swapping two different dialog item's locations. I originally was thinking about just recording the x / y offset of the dialog items but I'd like there to be one empty spot with no dialog item.

    I think I know what the problem is now, but not why the problem is there in the first place.

    I already have a customizable dialog box that has buttons equal to the area of the box - 1 for one empty slot. I'm then randomizing which two dialog items get swapped. I have it so if one of the randomized spots is the empty location, it won't try to move a dialog item that's not there. The problem is the times it doesn't work right, it's because it thinks a spot is being used by the empty location. I have it so if the x / y cord != the empty spot's cord, do not move a dialog box, and I even removed the random int range so it can't by chance even move that location.

    Would you be able to look at my trigger to tell me where it is I messed up?

    Posted in: Triggers
  • 0

    posted a message on Could some one take a look at my trigger?

    I'm trying to create a basic mini-game where theres a grid of numbers and one empty spot and the goal is to get all the numbers in a row. The problem I'm having is the randomizing trigger and I can't figure out what I'm doing wrong. I'd appreciate any help.

    Dropbox Link

    Posted in: Triggers
  • 0

    posted a message on Best way to randomize an array of integers?

    I have a list of two digit integers and I'd like to randomize the order they are in. Right now they are appear like; Int[0] = 10 Int[1] = 12 Int[2] = 4 Int[3] = 7

    And I'd like them to randomize into something like; NewInt[0] = 4 NewInt[1] = 12 NewInt[2] = 10 NewInt[3] = 7

    What's the best way to do this?

    Posted in: Triggers
  • 0

    posted a message on [Data] Creating a new ability from scratch

    I'm having trouble. Some reason my ability does not show up on my ultralisk. I've double checked everything and I cannot find where I messed up. It had some error when I attempted to attach the file so I'm using drop box.

    http://dl.dropbox.com/u/13819979/Shockwave.SC2Map

    Posted in: Tutorials
  • 0

    posted a message on Best tutorials for the data editor?

    I'm having a lot of trouble figuring out how the different parts are connected and what I need to do to make a complete copy of a spell so I can edit it to my needs. What are some of the best tutorials out there for this?

    Posted in: Data
  • 0

    posted a message on Best way to make an attack ground command?

    I'd like to create an attack ground order but I'm not sure how the best way to go about it would be. I don't know much about SC2 so the only way I can really think of it is to create a custom EMP like ability that adds behaviors (search radi 1 adds all splash damage, radi 2 adds all but 1's damage, etc) and through triggers remove the behavior and deal damage so its easily customizable. Is there a better way?

    I'm trying this way at the moment but the problem is I'm not making the custom ability right. Could some one help explain how to do that, or point me in a direction where I could find out? http://dl.dropbox.com/u/13819979/AttackGroundTest.SC2Map

    Posted in: Miscellaneous Development
  • 0

    posted a message on Create a range indicator on a unit like the siege tank with an arc

    I need some help on how to make a unit have a range indicator like the siege tank only with the indicator being created within -45, 45 angle, if that makes sense.

    Posted in: Data
  • 0

    posted a message on How do you do an auto-cast ability?

    Bump

    Posted in: Miscellaneous Development
  • 0

    posted a message on How do you do an auto-cast ability?

    I'm having a problem with auto-cast, I'm not sure how to make it simply auto-cast. I turned 'Autocast' and 'Autocast On' flags on and changed targeting to Self. There's no requirements and no cost for the ability. I tried using Instant Effect and Augmentation as a base but neither seemed to work.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Can you have a unit/doodad model as a dialog background image?

    I'd like something similar to an item container which can place a units model in the background.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Make units invisible to non allied players?

    is there a way to make units truly invisible to only certain players through triggers? I'd need the owner and his allies to be able to see the unit.

    Posted in: Miscellaneous Development
  • 0

    posted a message on How to find triggering player number

    I must be blind or something, I can't figure out where to find the player number of triggering player. I want to set a variable's array number to the player number but I cannot find it.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Most Likely place that will have Starcraft 2 If the main stores are sold out

    @DarkFireDragoon: Go

    Or you could just buy a digital copy through Blizzard. Why's this in the Map forum any way?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Can you make the area outside of your line of site black?

    What I'd like to have is when an area is not in your hero's line of site, you loose the ability to tell what's there. It would act like an unexplored area in SC1, complete black on your screen. Is this possible?

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