how to create a region to hero stand and up level in every 60 seconds....

S

sohai6769

Guest
how to create a region to hero stand and up level in every 60 seconds....
:banghead:
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
make a preplaced region and just move it to your hero
PS: what do you want to do??
 

TheCrystal

New Member
Reaction score
36
Don't mass smiles. One works as well as many.

From what I understand, you want a hero to spawn in a region and level up every 60 seconds.

Red=Your Region
Code:
Hero
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Set TempPoint = (Center of ([COLOR="Red"]Region[/COLOR]))
        Unit - Create 1 Paladin for Player 1 (Red) at TempPoint facing Default building facing degrees
        Custom script:   set udg_TempPoint = null
That creates a hero, set the spawning for whatever.

Code:
HeroIncrease
    Events
        Time - Every 60.00 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (([COLOR="Red"]Playable map area[/COLOR]) contains NeededUnit) Equal to True
            Then - Actions
                Hero - Set NeededUnit Hero-level to ((Hero level of (Triggering unit)) + 1), Show level-up graphics
            Else - Actions
That levels up the unit every 60 seconds.


You could have both those triggers be one, but based on your communication skills, I'll make it as simple as possible.
 
H

HBtheOnly

Guest
Here you go: this should work
You'll need all 3, edit it how you like.
This identifies when the hero enters the region and allows him to level up.
Code:
Lvl Up Region
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit Group - Add (Triggering unit) to Lvlupgroup
This makes him lvl up every 60 seconds (and every other hero in that region)
Code:
lvlup Every 60 seconds
    Events
        Time - Every 60.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in Lvlupgroup and do (Actions)
            Loop - Actions
                Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + 1), Show level-up graphics
This makes him stop leveling after he leaves.
Code:
Leave lvlup region
    Events
        Unit - A unit leaves Region 000 <gen>
    Conditions
    Actions
        Unit Group - Remove (Triggering unit) from Lvlupgroup
 

parmsib

New Member
Reaction score
0
I think he meant a region where you just level up every 60 second. I cant find anything about spawning in that post...
 

FroznYoghurt

New Member
Reaction score
37
ok "up level" is "level up" i get that but how do you "hero stand" ?
But if it is to have a region where all hereos level up every 60sec use:
Code:
E - every 60 sec
C - 
A - 
Set tempgroup = hereos in <region>
pick all in tempgroup and do
set level to level+1
call DestroyGroup(udg_tempgroup)
 

C0mput3r

New Member
Reaction score
20
Ok i think i understand what he's talking about. I believe he's talking about "if a hero stands in it for 60 seconds, he levels up. I thought back to some king-of-the-hill games in Starcraft that required you control an area for benefit.
So basicly it's an area that heros level up in if they stay in it. And your every 60 seconds was a good idea, with one small flaw. What if the hero waits until the 59 second. Then rushes in and steals the lv up??
For it to be fair, the way i see it. It has to be like...


Code:
Untitled Trigger 001
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set TempGroup = (Units in WhateverRegion)
        Unit Group - Pick every unit in TempGroup and do (Actions)
            Loop - Actions
                Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Custom value of (Picked unit)) Greater than or equal to 60
                    Then - Actions
                        Hero - Set (Picked unit) Hero-level to ((Level of (Picked unit)) + 1), Show level-up graphics
                        Unit - Set the custom value of (Picked unit) to 0
                    Else - Actions
        Custom script:   call DestroyGroup(udg_TempGroup)
 

Tru_Power

New Member
Reaction score
1
This may sound like a stupid question but is call DestroyGroup(udg_TempGroup) to prevent memory leaks?
 
S

sohai6769

Guest
how to create a region to hero up level??

how to create a region to hero stand in to up level per 60 seconds??
 

Sil3nt

SUP?
Reaction score
134
Every 60 seconds of game
Pick all units in region
Picked unit = Hero then Add <#> xp to picked unit
 
H

HBtheOnly

Guest
What he said but instead of add exp make it set hero level = hero level + 1
 
M

marcotjuhhhh

Guest
here
i know his problem, all these timers have on 60 seconds hero level up, but for all heroes in the region
he wants that when a hero comes in the region, 1 timer for that team will start, so not all heroes will level up in that region, but only 1.
 

Attachments

  • your timer.w3x
    18.6 KB · Views: 122
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top