| 12-17-2002, 11:23 PM | #1 |
Guest | I need to make a neutral building that can be used by anyone on the map and has a series of buttons. I want the buttons to take gold from the player who clicked them then set the research level of another player up one notch. It's for an AoS map where I want your whole team to be able to upgrade the troop spawns armor and damage. I know how to do it with a building that can only be used by one player but not with one that can be used by all. On a side note how do I make shops show up on the minimap with the little house icons? |
| 12-17-2002, 11:51 PM | #2 |
this trigger is a little involved as I just finish a similar trigger but mine took a little more work (requiring 1 upgrade for lvl 1, 2 more for lvl 2, 3 more (total 6) for lvl 3) heres the set up i used: Make a neutral passive building that sells custom units: Melee Attack Upgrade Melee Armor Upgrade Ranged Attack Upgrade etc. Place a region around that shop. Create the following variables: type name tech-type upgrades integer researchIndex integer playerIndex integer array researchLevels add this trigger: Events - Unit enters region (the region around shop) Conditions: Unit type of type Melee Attack Upgrade OR Unit type of type Melee Armor Upgrade OR etc. (note: it is important that this is all one condition or it will not work as all conditions must be true for the trigger to run Actions: if(unit-type of triggering unit) equal to Melee Attack upgrade set upgradeIndex = 1 if(unit-type of triggering unit) equal to Melee Armor upgrade set upgradeIndex = 2 etc. If(owner of(triggering unit) is an ally of (town player 1) then set playerIndex = 1 If(owner of(triggering unit) is an ally of (town player 2) then set playerIndex = 2 etc. set researchLevels[[(playerIndex*10) + upgradeIndex] = (researchLevels[[(playerIndex*10) + upgradeIndex] +1) set research level of (upgrades[upgradeIndex]) to researchLevels[[(playerIndex*10) + upgradeIndex] note: you should intiailize upgrades with the corresponding tech types and intialize researchLevels to 0 with a separate trigger the researchLevels index: playerIndex*10 + researchIndex acts like a double subscripted array (as long as you dont have more than 10 separate upgrades) so initialize it for indecies 11 to (# of town players)*10 + (# of separate upgrades) |
| 12-18-2002, 12:29 AM | #3 |
Guest | Woah that is complex. Thanks I'll go see if I can get it working. Can you link me to a modded WE that lets you enter path names for icons so I can make the units appear as the normal upgrade icons? |
| 12-18-2002, 01:21 AM | #4 |
Guest | Ok I used your general idea to create a trigger that should work. Event: Unit - A unit enters UpgradeOrange <gen> Conditions: (unit-Type of (triggering unit)) Equal to Upgrade Attack Damage Actions: Game - Display to (All players) the text: Orange has just upgraded their unit attack damage. Set AttackUpgrade = (AttackUpgrade +1) Player - Set the current research level of Strength of the Moon to AttackUpgrade for Player 6 (Orange) Unit - Remove (Triggering unit) from the game Then I just changed the condition and variable for upgrading armor. I also set the # of available units of the type Armor Upgrade or Damage Upgrade to 3 each with the longest possible replenishment interval so people don't waste money trying to upgrade more than 3 times. Now I just need a modded WE so I can make their icons look like the Night Elf armor and damage upgrade icons. |
| 12-19-2002, 08:29 PM | #5 |
i think UMSWE lets you do this, just look for it in the downloads section |
| 12-19-2002, 09:24 PM | #6 |
Guest | My problem is which usmwe do I use? There are like 4 and none of them say that they let you edit icons. |
| 12-20-2002, 02:29 AM | #7 |
- UMSWE3.4.exe = standard editor - UMSWE3.4AC.exe = standard editor with all creeps non-tileset specific - UMSWE3.4RD.exe = standard editor with regular doodad scales (no massive or tiny ones) - UMSWE3.4TM.exe = combines UMSWE3.4AC.exe and UMSWE3.4RD.exe - UMSWE3.4NB.exe = original WE with only the hidden units enabled (newbie version) |
| 12-20-2002, 09:38 AM | #8 |
Guest | That's my point. They mention like one feature. What about all the other things they supposedly have like being able to use different icons than would normally be allowed. |
| 12-20-2002, 11:57 AM | #9 |
Use UMSWE3.4.exe he has all the features u need. |
| 12-20-2002, 10:33 PM | #10 |
Guest | thanks! |
