• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

help with a Summoning based trigger

Status
Not open for further replies.
Level 2
Joined
Jun 22, 2010
Messages
10
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:
Level 11
Joined
Feb 14, 2009
Messages
884
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.
 
Level 2
Joined
Jun 22, 2010
Messages
10
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:
Status
Not open for further replies.
Top