Your second question is even less understanding.
please rephrase your question for better help.|||ok ignore the second question I figured that out. For the first question i want to make a trigger that when i type the chat message "-income" i want the recource gain gold and recource gain wood to be displayed to the triggering player
Code:
Resource Add1
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Resource Storage
Actions
Set ResourceGainGold[(Player number of (Owner of (Constructed structure)))] = (ResourceGainGold[(Player number of (Owner of (Constructed structure)))] + 2)
Set ResourceGainWood[(Player number of (Owner of (Constructed structure)))] = (ResourceGainWood[(Player number of (Owner of (Constructed structure)))] + 4)
Code:
Resource Add2
Events
Unit - A unit Finishes an upgrade
Conditions
(Unit-type of (Triggering unit)) Equal to Bigger Resource Storage
Actions
Set ResourceGainGold[(Player number of (Owner of (Triggering unit)))] = (ResourceGainGold[(Player number of (Owner of (Triggering unit)))] + 6)
Set ResourceGainWood[(Player number of (Owner of (Triggering unit)))] = (ResourceGainWood[(Player number of (Owner of (Triggering unit)))] + 2)
Code:
Resource Add3
Events
Unit - A unit Finishes an upgrade
Conditions
(Unit-type of (Triggering unit)) Equal to Great Resource Storage
Actions
Set ResourceGainGold[(Player number of (Owner of (Triggering unit)))] = (ResourceGainGold[(Player number of (Owner of (Triggering unit)))] + 2)
Set ResourceGainWood[(Player number of (Owner of (Triggering unit)))] = (ResourceGainWood[(Player number of (Owner of (Triggering unit)))] + 4)
Code:
Resource Subtract1
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Resource Storage
Actions
Set ResourceGainGold[(Player number of (Owner of (Dying unit)))] = (ResourceGainGold[(Player number of (Owner of (Dying unit)))] - 2)
Set ResourceGainWood[(Player number of (Owner of (Dying unit)))] = (ResourceGainWood[(Player number of (Owner of (Dying unit)))] - 4)
Code:
Resource Subtract2
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Bigger Resource Storage
Actions
Set ResourceGainGold[(Player number of (Owner of (Dying unit)))] = (ResourceGainGold[(Player number of (Owner of (Dying unit)))] - 8)
Set ResourceGainWood[(Player number of (Owner of (Dying unit)))] = (ResourceGainWood[(Player number of (Owner of (Dying unit)))] - 6)
Code:
Resource Subtract3
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Great Resource Storage
Actions
Set ResourceGainGold[(Player number of (Owner of (Dying unit)))] = (ResourceGainGold[(Player number of (Owner of (Dying unit)))] - 10)
Set ResourceGainWood[(Player number of (Owner of (Dying unit)))] = (ResourceGainWood[(Player number of (Owner of (Dying unit)))] - 10)
those are the triggers for the recource gain. i didn't do them myself i am editing a map for my clan and im pretty new at this trigger stuff|||Code:
Game - Display to (Your player) the text: (String(ResourceGainGold))|||tysm your the best man|||YAY I JUST FIGURED IT OUT sorry about double post|||Falco,
Game - Display to (Your player) the text: (String(ResourceGainWood))
This is Sin, my laptop charger hasn't been working for the past couple days so I'll be inactive shortly. Do me a favor and don't kick me :].
Also, If you feel like it, I'd like that trigger? =D
If you need to get ahold of me in while it's not working hit me up here... www.myspace.com/06bubba
P.S. o.O o.O o.o O.O
Sincerely,
Sin
No comments:
Post a Comment