(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-20-2008, 11:36 AM   #1 (permalink)

@US East
 
Join Date: Jun 2008
Posts: 16

IronForge is an unknown quantity at this point (0)


Distributing Gold between all allied players, how?

Basically I need to distribute gold over all players that are still around.
So the trigger will be
Event: Player 6 gold greater than or equal to 5000
Condition: None
Action: ??? PLEASE HELP

I obviously don't want gold given to leavers or slots left blank, so yeah please help thanks.

Also, please remember to list the trigger type (unit, player, etc) and other details particularly categories and subcategories as this being my first time so deep into the editor, I haven't got a clue. Didn't understand half the threads here that would have helped...

thanks a ton
IronForge is offline   Reply With Quote
Old 11-20-2008, 01:31 PM   #2 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 347

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


Trigger №1

Events
Map initialization
Conditions
Actions
For each (Integer A) from 1 to 12, do (Trigger - Add to trig2 <gen> the event (Player - (Player(i)) leaves the game))

Trigger №2

Events
Conditions
Actions
Player Group - Remove (Triggering player) from Players
Player Group - Pick every player in Players and do (Actions)
Loop - Actions
Player - Add (((Triggering player) Current gold) / (Number of players in Players)) to (Picked player) Current gold
Player - Set (Triggering player) Current gold to 0

Note: global variable of force type "player" contains players who are still ingame.
Day-Elven is offline   Reply With Quote
Old 11-20-2008, 03:10 PM   #3 (permalink)

User
 
Join Date: Aug 2007
Posts: 67

Richardsteel has little to show at this moment (3)


The group "PlayersKingPlaying" represents the players on the team that are still playing, like the other guys did, but this one splits an amount of gold among the players.

Untitled Trigger 001
Events
Conditions
Actions
Set TempInteger = (5000 / (Number of players in PlayersKingPlaying))
Player Group - Pick every player in PlayersKingPlaying and do (Actions)
Loop - Actions
Player - Add TempInteger to (Picked player) Current gold
Richardsteel is offline   Reply With Quote
Old 11-21-2008, 01:56 AM   #4 (permalink)

@US East
 
Join Date: Jun 2008
Posts: 16

IronForge is an unknown quantity at this point (0)


well i have no idea what these triggers do, thanks but cna you tell me where to find them, and where to get the 'loop' function?
IronForge is offline   Reply With Quote
Old 11-21-2008, 02:16 AM   #5 (permalink)
 
Big Dub's Avatar

AegisFang@USWest
 
Join Date: Aug 2007
Posts: 432

Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)


Why dont you try looking into this action:
Divert Income
Events
Map initialization
Conditions
Actions
Player - Divert 50% of the Gold income of Player 1 (Red) to Neutral Extra

You can use neutral extra as your bank, then have him divert money to all players left on map that you want to get the money.
__________________
Please remember to give reputation peoples!
If you use my resources in a game give credits to AegisFang@USWest
Really Cool Stuff!
Get your Starcraft 2 resources here!
Big Dub is offline   Reply With Quote
Old 11-21-2008, 04:29 AM   #6 (permalink)

@US East
 
Join Date: Jun 2008
Posts: 16

IronForge is an unknown quantity at this point (0)


does it work?
Because it is not really gold 'income' but a trigger directly feeding gold to the player.
IronForge is offline   Reply With Quote
Old 11-21-2008, 07:03 AM   #7 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 347

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


You can't transfer all gold with divert income... Make it as i wrote. You don't need loop actions, you need Player Group - Pick every player in ***
Day-Elven is offline   Reply With Quote
Old 11-21-2008, 09:17 AM   #8 (permalink)

@US East
 
Join Date: Jun 2008
Posts: 16

IronForge is an unknown quantity at this point (0)


How do we create player group? Last time I tried a few wierd things came out. No such thing as create custom player group.
The add variable doesn't allow that either. At least I couldn't find a way to progress from the add variable part. I think its under variables right? Looks awfully familiar but can't progress.
IronForge is offline   Reply With Quote
Old 11-21-2008, 12:54 PM   #9 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 347

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


You don't need to. Just create variable and add players to created variable group.
Day-Elven is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] [allied] units un-attackable? 2Clever4u World Editor Help Zone 2 08-19-2008 07:02 AM
Allied assistance SkriK World Editor Help Zone 6 05-26-2008 10:17 PM
how do you make it so that you cant give players gold/lumber lawboixD World Editor Help Zone 7 04-26-2008 02:04 AM
Using Neutral Slots as allied AI? mongoose41 World Editor Help Zone 11 03-12-2008 07:00 AM
[Solved] How do you prevent allied units from being able to attack eachother? 555555 World Editor Help Zone 7 01-31-2008 08:36 AM

All times are GMT. The time now is 05:35 AM.






Your link here 
Bad Credit Loan | Loans | Debt Consolidation | Mortgage Calculator | Bankruptcy
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle