• 0

    posted a message on Trigger Question: Turn Off for specific player only

    I just figured there would be a Turn Off Trigger for Player x :P

    Posted in: Triggers
  • 0

    posted a message on Trigger Question: Turn Off for specific player only

    Found an at least temporary solution, but it seems like there should be an easier way:

    Events

    Local Variables

    Player Has Run Trigger = false <Boolean[10]>

    Conditions

    Player Has Run Trigger[(Triggering player)] == false

    Actions

    Variable - Set Player Has Run Trigger[(Triggering player)] = true

    Posted in: Triggers
  • 0

    posted a message on Trigger Question: Turn Off for specific player only

    Simple question: How can I turn off a trigger after it runs once PER PLAYER? The trigger I have in mind is a unit enters a region, it displays text and then turns off the trigger, but not for the other players in the game, so they can activate it as well.

    Posted in: Triggers
  • 0

    posted a message on Trigger not recognizing target of ability

    This worked, thank you :)

    (had to change it for 2nd half of trigger as well though)

    Posted in: Miscellaneous Development
  • 0

    posted a message on Trigger not recognizing target of ability

    I am trying to create an ability that sets the CASTER's mana to zero, and does an equal amount of damage to the target. Basically, I am trying to create a feedback that is based on the caster's mana and not the target's.

    I cannot figure out how to do this in the data editor, but more importantly I tried to do this through triggers and it fails to recognize the unit I target with the ability I created. I've spent all day trying things out and I'm just ready to let an expert tell me what I'm doing wrong.

    Here is the trigger I created:

    Discharge

    Events

    Unit - Any Unit uses Mage - Discharge at Generic6 - Complete stage (Ignore shared abilities) * Have tried ANY STAGE as well

    Local Variables

    Mana Spent = 0.0 <Real>

    Conditions

    Actions

    Variable - Set Mana Spent = ((Triggering unit) Energy (Current))

    UI - Display (Text(Mana Spent) with Any Precision decimal places) for (All players) to Subtitle area - Displays mana correctly in game

    Unit - Set (Target unit for (Triggering order)) Life to (((Target unit for (Triggering order)) Life (Current)) - Mana Spent)

    UI - Display (Name of (Unit type of (Target unit for (Triggering order)))) for (All players) to Subtitle area - Gives an error

    Unit - Set (Triggering unit) Energy to 0.0

    ----

    Trying this through the data editor I could not figure out how to switch the amount of life lost from the target's mana to the caster's mana. ALSO: I excluded Ground as an allowable target but when I test it I can still cast on the ground :/

    The ability is of type: Effect - Target

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