• 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.

Pls help me with... ->

Status
Not open for further replies.
Level 2
Joined
Apr 30, 2009
Messages
3
-Changing owner of specific unit (*building) (like alot of them mb make it in one kind of race, but i cant choose naga (which i used, all another i need)

-Income timer... For the owned buildings that was typed previously <-...

-Unit spawn... Like when u choose in tavern a unit it spawns alot of them (many kinds) in marked area (for each unit chosen-> his own area)

-well with leader board im done... if there some mistakes please write...

  • Leaderboard
    • Events
      • Time - Elapsed game time is 0.00 seconds
      • Conditions
      • Actions
        • Leaderboard - Create a leaderboard for (All players) titled Citys:
        • Player Group - Pick every player in (All players) and do (Do nothing)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked player) controller) Equal to User
            • ((Picked player) slot status) СEqual to Is playing
      • Then - Actions
        • Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Triggering player)) and value 0
        • Else - Actions
        • Leaderboard - Show (Last created leaderboard)
and updating...

  • Updating LB
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) equal to true
      • Set SetPlayerKills[(Player number of (Owner of (Killing unit)))] = ((Player number of (Owner of (Killing unit))) + 1)
      • Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to ((Player number of (Owner of (Killing unit))) + 1)
        • Leaderboard - Sort (Last created leaderboard) by Значение in РџРѕ убыванию order
If someone has a triggers from maps like "Rise of China" or "Lords of Europe" it will me easyer to help me... *I dnt steal but i need them for my own map

:fp:And if here is some problems with letter spelling sry... im russian))
 
Last edited:

Ralle

Owner
Level 79
Joined
Oct 6, 2004
Messages
10,183
You made three threads with the same content. There is a
edit.gif
button for a reason.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
My first thought is:
Please, read some tutorials, use a multiboard, not a leaderboard and learn how to fix leaks (since you probably don't know how to do it).

I don't really get the first question... you just want to change the owner of a unit?
  • Unit - Change ownership of "Your Unit" to "Your Player" and Change color
I really hope this isn't what you mean, since it's a basic function...

Income Timer:
  • Income
  • Events
    • Time - Every X seconds of game time
  • Conditions
  • Actions
    • For each (Integer A) from 1 to (Number of players), do (Actions)
      • Loop - Actions
        • Set TempUGroup = (Units owned by (Player((Integer A))) of type "Your Unit")
        • Player - Add ((Number of units in TempUGroup) x 10) to (Player((Integer A))) Current gold
        • Player - Add ((Number of units in TempUGroup) x 3) to (Player((Integer A))) Current lumber
        • Custom script: call DestroyGroup(udg_TempUGroup)
(10 gold/unit, 3 lumber/unit every 10 seconds in this trigger).

Off to the next question...
  • Spawn Units
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Ability being cast) Equal to "Unit 1"
      • Then - Actions
        • For each (Integer A) from 1 to "Amount of spawned units", do (Actions)
          • Loop - Actions
            • Set TempLoc = (Random point in "Region")
            • Unit - Create 1 "Unit 1" for Player 12 (Brown) at TempLoc facing Default building facing (270.0) degrees
            • Custom script: call RemoveLocation(udg_TempLoc)
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Ability being cast) Equal to "Unit 2"
      • Then - Actions
        • For each (Integer A) from 1 to "Amount of spawned units", do (Actions)
          • Loop - Actions
            • Set TempLoc = (Random point in "Region")
            • Unit - Create 1 "Unit 2" for Player 12 (Brown) at TempLoc facing Default building facing (270.0) degrees
            • Custom script: call RemoveLocation(udg_TempLoc)
      • Else - Actions
The abilities are based of instant-abilities, like Wind Walk, Roar, ...

Tutorial for a multiboard
I suggest you use this...
 
Level 2
Joined
Apr 30, 2009
Messages
3
change owner of a unit (1 type of unit (mb race) like i can make it naga or smth else... not the point... when hp< #condition (hp) ; and ahhm thnx for multiboard question

And ammh... i pushed edit and didnt get how to delete topic =(
 
Status
Not open for further replies.
Top