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

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 14
Joined
Nov 4, 2006
Messages
1,241
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