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

2 Qs, one about the ability "wander" and one about UI Text

Status
Not open for further replies.
Level 4
Joined
Feb 25, 2008
Messages
58
First, does anyone know if the ability "wander" has weird effects on neutral hostile units, and if it will mess with their "guard distance" and whatnot?

I was tinkering around with it for some spiders that I have in a forest section of the map that I'm making and noticed that as soon as I put "wander" in the abilities, they would sometimes ignore heroes that were attacking them as they wandered around.

Second question is about the text in the user interface. If you hover your mouse over the top-right most box (the one that in melee maps tells you what level your income tax is at) then a tooltip appears that shows what level the income is at and at what level of food usage it will change. Thus far I have been able to change all the text to say what I want except for one part!

The part that tells you what % of the harvested gold you are CURRENTLY receiving I have not been able to get rid of. I've changed the text in front of the "100%" but haven't been able to change or get rid of the "100%" itself.

Thanks in advance for the help!
Cheers.
 
Level 2
Joined
Sep 19, 2008
Messages
24
for the 100% text, i remember you can't get rid of it, but you can color it to make it seems the text is not there, take a look at this screenshot

100.jpg


you see? the text is actually there, but IceFrog just color it so it seems the text isn't there
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
I was tinkering around with it for some spiders that I have in a forest section of the map that I'm making and noticed that as soon as I put "wander" in the abilities, they would sometimes ignore heroes that were attacking them as they wandered around.

Wander orders units to move not attack-move so they will ignore attackers.

You can fix that by making triggering wander.

  • Melee Initialization
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Set TempGroup = (Units owned by Neutral Hostile of type <YourUnit>)
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Set TempPoint1 = (Position of (Picked unit))
          • Set TempPoint2 = (Random point in (Region centered at TempPoint1 with size (300.00, 300.00)))
          • Unit - Order (Picked unit) to Attack-Move To TempPoint2
      • Custom script: call DestroyGroup(udg_TempGroup)
      • Custom script: call RemoveLocation(udg_TempPoint1)
      • Custom script: call RemoveLocation(udg_TempPoint2)
First, does anyone know if the ability "wander" has weird effects on neutral hostile units, and if it will mess with their "guard distance" and whatnot?

This trigger and standard wander ability ''moves'' Guard Position to target point of order (TempPoint2 in trigger)
 
Level 11
Joined
Feb 14, 2009
Messages
884
About the 100% thing:
There is a tutorial in the Tutorial section called Game Interface - Basics that will tell you exactly how to remove it (among other things).

About the wander thing, you have to use periodic events, just as Child_0f_Bodom showed you.
 
Level 9
Joined
Apr 28, 2009
Messages
538
Kercyn, you CANNOT remove that "100%"

It is even said in the Tutorial you linked at:


"There's a way to remove the "100%" that always shows up in the upkeep interface, exactly the way DotA hidden it.. Go to Game Interface, then find Text - General - Gold Income Rate. Type anything you want there, like a link to the thread of your map or it's forum (if it's a hosted project), after that, place this hex color code beside it: |c22222222
That way, it can't be easily shown by players. It can, however, be seen in bright terrain such as snow but it's still almost unnoticeable to the naked eye."
 
Level 18
Joined
Mar 13, 2009
Messages
1,411
It's the truth yes. It can not be completely removed. It will use the same color as the interface, but with snow in the background you can see it. The way that tutorial mentioned is the only way to fix the problem.
 
Level 11
Joined
Feb 14, 2009
Messages
884
When I said "remove" I meant that you can render it almost invisible. I have read the tutorial I linked :p
 
Status
Not open for further replies.
Top