• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[Spell] Spawning Trees through ability

Status
Not open for further replies.
Level 3
Joined
Jun 30, 2014
Messages
16
So I made this ability right? And I made the custom triggers yes?
Heres what I have


Code:
[Event]Unit - A unit begins casting an ability[/Event]
[Condition](Ability being Cast) Equal to _Plant Sappling ( L )[/Condition]
[Action]Set Caster_Plant = (Casting Unit)[/Action] // not needed
[Action]Set Caster_Plant_Point = (Target Point of Ability)[/Action]
[Action]Destructible - Create Cityscape Fall Tree Wall at Caster_Plant_Point Facing etc.
[Action]Game - Display to (All Players) for 5.00 seconds the text: Test

Will not work.
Not even the comment appears *Insertsadface*
Can someone help fix this problem?
 
Level 8
Joined
Jan 28, 2016
Messages
486
Not sure exactly why your trigger doesn't work at all but try replacing the event with "A unit starts the effect of an ability" instead. By the way, this worked for me without any problems.

  • Plant Sapling
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Channel
    • Actions
      • Set Position = (Target point of ability being cast)
      • Destructible - Create a Summer Tree Wall at Position facing (Random angle) with scale 1.00 and variation 0
      • Custom script: call RemoveLocation(udg_Position)
 
Level 3
Joined
Jun 30, 2014
Messages
16
Not sure exactly why your trigger doesn't work at all but try replacing the event with "A unit starts the effect of an ability" instead. By the way, this worked for me without any problems.

  • Plant Sappling
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Plant Sappling
    • Actions
      • Set Position = (Target point of ability being cast)
      • Destructible - Create a Summer Tree Wall at Position facing (Random angle) with scale 1.00 and variation 0
      • Custom script: call RemoveLocation(udg_Position)

I guess I wasn't doing it right but I literally tried all the "casting" and "channeling" abilities idk what to try next man.
 
Level 8
Joined
Jan 28, 2016
Messages
486
That was quick! :D

You might want to double check if there are any other triggers interfering with the one you posted. I originally tested my trigger with a custom ability that I thought was unused but it wasn't spawning the tree. I soon found out that the ability was being used for a Jass spell (I had only checked the GUI spells) and it was stopping my GUI trigger, so I disabled it.

If this doesn't solve it, try using another point-target ability and see how that goes.
 
Level 3
Joined
Jun 30, 2014
Messages
16
That was quick! :D

You might want to double check if there are any other triggers interfering with the one you posted. I originally tested my trigger with a custom ability that I thought was unused but it wasn't spawning the tree. I soon found out that the ability was being used for a Jass spell (I had only checked the GUI spells) and it was stopping my GUI trigger, so I disabled it.

If this doesn't solve it, try using another point-target ability and see how that goes.

Thanks I'll try it and +rep to you sir. But um If I need help Ill try to ask you again okay?
 
Status
Not open for further replies.
Top