XP generating building, whelp.

Str4ndb3rg

Cool Member
Reaction score
0
Want the hero of the user to gain experience from a tower.

Copy and pasted just to see if it worked and it didnt.

Code:
Income GoldMine
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        Set GoldMineIncome = (Units of type XP Gainer)
        Unit Group - Pick every unit in GoldMineIncome and do (Actions)
            Loop - Actions
                Hero - Add 50 experience to (Triggering unit), Hide level-up graphics
                Floating Text - Create floating text that reads +XP above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 20.00% transparency
                Floating Text - Change (Last created floating text): Disable permanence
                Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
                Floating Text - Set the velocity of (Last created floating text) to 100.00 towards 90.00 degrees
        Unit Group - Remove all units from GoldMineIncome
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,497
> Hero - Add 50 experience to (Triggering unit), Hide level-up graphics
> Floating Text - Create floating text that reads +XP above (Picked unit)

What would the triggering unit be on a "time" event?
 

Str4ndb3rg

Cool Member
Reaction score
0
There is a building called XP Gainer which is supposed to generate XP for the hero you spawn with.

Im all lost on how to get this work.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,497
> I'm all lost

Well, you could start by providing more information.
Like, are there more such buildings? Are you the owner? Does it matter?
Do they work automagically or only when you are near them?
Is there more than one Hero unit or type? At the same time? For the same player?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top