• 0

    posted a message on How to change one actor to other for unit in game

    @Araxnid: Go

    On the trigger side of things - you can swap a unit to another easily with:

    Unit - Replace <UNIT_VARIABLE> with a <UNIT_TYPE> using Old Unit's Relative vitals
    

    On the data side of things - the problem with just swapping an actor model is it won't change the death animation. There's actually a simple way to swap a model with the data editor: Create an event with an action to 'ModelSwap'. Here's a entry from my map that changes a model into a cow!

    Field	Cow (Simple)
    Actor - Aliases	
    Actor - Copy Source	
    Actor - Filter	
    Actor - Flags	
    Actor - Fog Visibility	Snapshot
    Actor - Sharing	None
    Editor - Editor Categories	
    Editor - Editor Comment	
    Editor - Editor Description	
    Editor - Editor Name	Cow (Simple)
    Editor - Editor Prefix	
    Editor - Editor Suffix	
    Event - Events +	(Behavior.Cow.Create|ActorCreation|Behavior.Cow.Destroy):(|_Unit|):(Create|ModelSwap Cow|Destroy)
    Event - Macros	
    Event - Remove +	
    Event - Terms	
    Hosting - Host Supporter +	_Unit:Implicit:Implicit:Disabled
    Properties - Accepted Property Transfers	Model Scale, Cast Shadows, Cloak Effect, Decal, Local Tint Color, Opacity, Physics State, Scale, Team Color, Time Scale, Tint Color, Visibility, Warp Group
    Properties - Accepted Transfers	
    Properties - Inherit Type	Continuous
    Properties - Inherited Properties	
    
    Posted in: Triggers
  • 0

    posted a message on Couple general questions about triggering

    @Keyeszx: Go

    There's a lot that could be said about variables, but here's a BRIEF introduction.

    Variables are temporary data containers and will be destroyed after they become 'out of scope'. In the trigger editor, there are two scopes - global and local. Local variables in an action or function exist for that particular scope. Global variables exist until the game ends and will not leave scope after a function or action ends.

    Banks store persistent data on the hard drive. I haven't used them personally yet so I can't offer much advice there. I can tell you that since it's local storage, you can't protect it from tampering by the user.

    Posted in: Triggers
  • 0

    posted a message on Not sure why this trigger isn't working

    Assuming you had equal number of players and spawns, you could have an integer array of size 6. The value of each index position could be the player (players are represented as an integer). The index # could represent the spawn. Apply the shuffle template algorithm from the blizzard built in libraries to randomize which player spawns at what point. Spawn the player (index value) at location index (spawn pt #). There are a number of ways to relate point objects by an ID, but the most efficient / clean way depends on how you structure your data.

    Posted in: Triggers
  • 0

    posted a message on bug with creep and tower bonus pls help

    @Selfcreation: Go

    Look for the damage effect entry. There should be a field for +Dmg for attributes. Attributes like armored or massive are probably what you're looking for. Make sure to check the validator fields of your ability for the creep problem.

    Posted in: Data
  • 0

    posted a message on Question about Reals.

    @s3rius: Go

    Right you are sir. Was just clarifying for OP that calculation was not required for loss in accuracy.

    Posted in: Triggers
  • 0

    posted a message on Grey Progress Bar

    @James7285: Go

    For unit progress bars, one way to have them appear is through an ability (data editor). Ability phases (prepare/cast/channel/finish) will display a progress bar above the unit when a duration is specified. You may need to enable some flags for for showing the ability phase progress in the ui under the ability entry.

    A flag could be a unit with a 'capture' ability, but there may be other ways.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Question about Reals.

    I don't think any math operations are required to lose precision. Sometimes entering real values into the data editor, I lose precision automatically.

    Posted in: Triggers
  • 0

    posted a message on [Info] Patch 1.1 Undocumented Editor Changes

    Hah! I knew there were some new integer functions.

    Posted in: Galaxy Editor Bugs and Feedback
  • 0

    posted a message on Using Units as Currency

    @DanteAS: Go

    You could activate the trigger when a unit enters the area. Inside the trigger, you could count the number of zerglings owned by player / etc. The count could be assigned to a variable and placed in a trigger condition. Try counting the number of units in a unit group, and create the unit group based on methods like 'Units in Region...". "Units in Region..." are functions, so you'll need something with a Unit group assignment for these methods to show up.

    Posted in: Miscellaneous Development
  • 0

    posted a message on vortex effect

    This questions would be better answered in the data forum.

    If you want to duplicate an ability, lookup the ability (tab) for the vortex entry. Next, find the effect field in the vortex ability and use that. I believe there are two peristants associated with vortex as well.

    Posted in: Triggers
  • 0

    posted a message on Dialog item weirdness

    I looked over your trigger and it looked okay from what I could tell. My advice is to start commenting out blocks of that trigger and observe the behavior. Also, it would be more manageable if the triggers were split up more. It can be difficult to manage very large triggers like that.

    Posted in: Triggers
  • 0

    posted a message on Return player number as integer variable

    @Xtremedesyr: Go

    Players #s in StarCraft are just integers. Also, when you say 'variable array', say 'array variable' instead since putting 'variable' as adjective implies the size may vary. I would think you would want to assign a player value as an integer rather than an array. You can also user player groups, which are collections of players and do not have a fixed size.

    Posted in: Triggers
  • 0

    posted a message on Formatting Text for use in a Dialog

    Precision typically controls the number of decimal places.

    Posted in: Miscellaneous Development
  • 0

    posted a message on How to create custom life/mana bars

    You can resize an image - dialog item for colored progress bars / life bars.

    Posted in: Triggers
  • 0

    posted a message on [Info] Patch 1.1 Undocumented Editor Changes

    I noticed there are some new Integer Math functions. I don't remember things like 'Clamp', 'Trunc', or 'Square Root' being there. I should add that I use the GUI for trigger editing.

    Posted in: Galaxy Editor Bugs and Feedback
  • To post a comment, please or register a new account.