• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

help with a Summoning based trigger

Status
Not open for further replies.

SpiritPhoenix

S

SpiritPhoenix

Okay, so this is actually an interesting difficulty that i'm having trouble with.

I got a summoning based trigger in my map. Basically the Goal of the trigger is to have the unit produce another unit, at the cost of the other unit (Gold/Lumber) and then kill the summoning unit. So basically its Once X unit has finished casting Y spell, it basically summons the requested units, and then charges the Gold/Lumber amount for those units, and kills X.

I got the basic summoning part done. I also have the part where it kills off X done. I just haven't figured out yet (And this is where i am requesting help), is there a way to make the trigger remove resources from the player?

[Edit]: Additionally, when i added a second similar trigger to the same unit, it always uses one of the triggers. (Basically it has 2+ options of what it can become)(But it always chooses one no matter which ability i have it use...) Any Suggestions on this issue?

I haven't been able to figure it out yet... If anyone knows how to do this, please let me know.

Sincerely,
SpiritPhoenix

PS: If you need more information, please feel free to let me know.
 
Last edited by a moderator:
Posting the triggers involved can help.

You can charge the resource cost using:
[trigger=]Player - Add -100 to (Triggering player) Current gold[/trigger]

I second that ^

Regarding your second question, make sure that your spells have different ID, otherwise they get mixed up.
 
My apologies, but thank you, that solved the basic problem at hand. The only thing is, it made a different problem out of it. Is there a way to force to game to double check that the player has enough resources, because in my tests, i was able to do it even when i didn't have enough resources, all it did was make me at 0, and allowed me to keep doing it.

[Edit: I think i figured it out, i'll give the new trigger a test, and see if what i'm thinking works]
[Edit: Yep, i was able to figure the rest out using an Integer Comparison Condition]

Again Thank you for your guys help, it was much appreciated.
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top