• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Help with new project

Status
Not open for further replies.
Level 2
Joined
Oct 6, 2007
Messages
19
Hello, I want to make a game like the one in the campaign (alliance campaign, search for illidan) where Illidan is trapped in a moving cage, I want to make 2 teams who both need to get the cage in a circle of power in the base.

1.How u make it that whenever a hero (from the blue team) comes close to the cage, the cage starts moving in the direction of the circle of pwr from the blue team (the same for the red team.)

2.How u make that creeps autospawn from barracks to the other base?

3.commands like -random to get a random hero (from the tavern)?

4.How u make a scoreboard with the number of herokills from everybody, and that whenever a hero is killed theres a message with: XXX killed XXX. And the first hero kill: XXX draw firstblood +200 gold.

:cq: ty
 
Last edited:
Level 9
Joined
Jun 26, 2007
Messages
659
By using the search tool, you could find all this by yourself... -_-

1
  • Events
    • Unit - A unit comes within (distance) of (the cage)
  • Conditions
    • ((triggering unit) is a hero) equal to true)
  • Actions
    • Unit - Order (the cage) to Move to (ennemi base region)
2
  • Events
    • Time - Every (frequence) seconds of game time
  • Actions
    • Unit - Create 1 (creep unit 1) for (dummy player) at (spawn region) facing ( ) degrees
    • Unit - Order (Last created unit) to Attack-Move to (ennemi base region)
    • Unit - Create 1 (creep unit 2) for (dummy player) at (spawn region) facing ( ) degrees
    • Unit - Order (Last created unit) to Attack-Move to (ennemi base region)
    • etc
3
  • Events
    • Player - Player 1 (Red) types a chat message containing -random as ( )
    • Player - Player 2 etc etc
  • Conditions
  • Actions
    • Unit - Create 1 HeroTypeArray[Random number between 0 and (hero count)] for (Triggering player) at (starting region) facing ( ) degrees
you've got to initialise the HeroTypeArray with the hero type you use.
 
Level 2
Joined
Oct 6, 2007
Messages
19
question 4

And how u make a scoreboard with the number of herokills from everybody, and that whenever a hero is killed theres a message with: XXX killed XXX. And the first hero kill: XXX draw firstblood +200 gold.
 
Status
Not open for further replies.
Top