• 🏆 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!

RPG Creep Spawn and Patrol

Status
Not open for further replies.
Level 7
Joined
Jun 16, 2008
Messages
327
Hello,
I am busy creating my first RPG and, so far, I am doing well.
I have already created triggers, units and heroes fo my RPG.

But, now comes my problem:
What I want is: A hero owned by a human player enters a region (which I have dubbed a "creep spawn and patrol" region). Then, random creeps are spawned according to the level of experience of the hero that enters the spawning region.

After the creeps are spawned, I want them to patrol another nearby region.
But, I also want the spawning to stop if the hero unit exits the region.

There's a lot more to it, but this is basically what I want "in a nutshell".

I have tried what would seem obvious but it doesn't seem to work.

Can you please help me? :bored:
 
Level 13
Joined
Nov 4, 2006
Messages
1,239
so do you want them to spawn continously while the hero is in the region? you could make some triggers for that, first one, hero enters region -> turn on trigger2

trigger2: every 1 second of the game, create 1 unit at region, order last created unit to move to other region

trigger3: hero leaves region, turn off trigger2
 
Level 7
Joined
Jun 16, 2008
Messages
327
Hmmm, maybe.
But it still won't spawn a creep according to the hero's level.
Also, it will only move there, not patrol, which helped me remember the Unit Patrol Action.

Thank you for your valuable contribution, but, still the problem persists.
 
Level 7
Joined
May 3, 2008
Messages
229
Its a:

Every 3 seconds of game time:


Conditions are tricky and i never tried this, so your gonna have to fiddle.
But its something like: "Hero is = to lvl 1 = true... ye I gotto go :)

Make one unit, (Random creep or specific unit) for Player (you want often hostile or ENEMIES)

Order all units in region (Forest for instance) to patroll to random point in region Forrest.
 
Status
Not open for further replies.
Top