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

Race Help

Status
Not open for further replies.
So I've been tinkering with this race for a possible third race in my map. Some issues though:

-Can't seem to get the Queen to be invisible.
-I want the queen to regenerate mana based on how many Harvesters she has out, 1 mana per Harvester per 5 seconds.
-I can't seem to get a special affect to occur on the units that "hatch" once the larva timer is up.

Any help with these problems is appreciated!

Also, if anyone has any icon suggestions for the Widow please let me know.
 
Last edited:
Level 6
Joined
Sep 13, 2008
Messages
261
I'll edit this post as i check into your problems.

1.The queen is invisible. Buildings don't show a translucent effect to their owner.

2.
  • Queens Mana
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
      • (Number of units in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Harvester))) Greater than 5
    • Actions
      • Set TempInteger = (Number of units in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Harvester)))
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Queen)) and do (Actions)
        • Loop - Actions
        • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + ((Real(TempInteger)) / 5.00))
Leaks you will need to clean them

3.I really don't feel like deep diving into your map to figure out the whole create system. sorry all I got for you.
 
Last edited:
  • Like
Reactions: Kam
Level 3
Joined
May 1, 2009
Messages
24
i think this should work

events:
Unit- a unit is revived
conditions:
actions:
Special effect - Create a special effect at (position of (reviving unit) using (here you choose the special effect u want)
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
So I've been tinkering with this race for a possible third race in my map. Some issues though:

-Can't seem to get the Queen to be invisible.
-I want the queen to regenerate mana based on how many Harvesters she has out, 1 mana per Harvester per 5 seconds.
-I can't seem to get a special affect to occur on the units that "hatch" once the larva timer is up.

Any help with these problems is appreciated!

Also, if anyone has any icon suggestions for the Widow please let me know.

  • Mana regeneration
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Set UNITGROUP = (Units of type Queen)
      • Unit Group - Pick every unit in UNITGROUP and do (Actions)
        • Loop - Actions
          • Set UNITGROUP = (Units of type Harvester)
          • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + (Real((Number of units in UNITGROUP))))
          • Custom script: call DestroyGroup(udg_UNITGROUP)
      • Custom script: call DestroyGroup(udg_UNITGROUP)
For effect you can just do the unit with model file of effect you want and when you want the effect create that unit and kill him.
 
Last edited:
  • Like
Reactions: Kam
Status
Not open for further replies.
Top