Random Creeps for RPG

Draganizer

Member
Reaction score
1
How would i make a random encounter like the pokemon games? i was thinking of using regions but i dont have any idea on where to start. I would like it be be random between 3 or 4 units but having some harder to encounter then others aswell. and basically transporting my hero and that unit thats picked to a certaint arena area. Anyone can help?
 

Joccaren

You can change this now in User CP.
Reaction score
54
Basically, create large regions for your random encounter sections.
Then, use these triggers:

Trigger:
  • Creep Initialisation
    • Events
      • Map Initialisation
    • Conditions
    • Actions
      • Set (CreepEncounterType[1]) to (Your Unit Type 1)
      • Set (CreepEncounterType[2]) to (Your Unit Type 2)
      • Set (CreepEncounterType[3]) to (Your Unit Type 3)
      • Set (CreepEncounterType[4]) to (Your Unit Type 4)
      • Set (CreepEncounterType[5]) to (Your Unit Type 1)
      • Set (CreepEncounterType[6]) to (Your Unit Type 2)
      • Set (CreepEncounterType[7]) to (Your Unit Type 3)


Trigger:
  • Random Encounter Section 1
    • Events:
      • Time - Every 25 seconds of game time
    • Conditions
    • Actions
      • Unit - Unit Group - Pick Every unit in (Your Random Encounter Region) matching ((Matching Unit) is a hero) equal to true and do actions
        • loop
          • Set (CreepEncounterRandomiser) to (Random integer between 1 and 10)
          • Unit - Create 1 (CreepEncounterType[CreepEncounterRandomiser]) for (Your Player) at position of (Picked Unit)
 

Draganizer

Member
Reaction score
1
alright now i made regions for each player so they can each have a battle if their hero was in the certain region and got a unit out. But how do i move both of the units the one that is created and the right hero to the specific region?

I was looking for a if matching hero belongs to playerRed then move matching hero to the center of region. And seperately make last created unit move to center of selected region. but i cant find a good way to input it into the trigger itself...
 

Joccaren

You can change this now in User CP.
Reaction score
54
Trigger:
  • If (All conditions are true) Then (Do then actions) Else (Do else actions)
    • If - Conditions
      • Integer Comparison - (CreepEncounterRandomiser) equal to or less than 7
    • Then - Actions
      • Unit - Move (Picked Unit) to centre of (Your Region)
      • Unit - Move (Last Created Unit) to centre of (Your Region)
    • Else - Actions
      • Do nothing
 

Draganizer

Member
Reaction score
1
wouldnt that make all the players in just one region? i would like one region for each player. heres an example if red gets a creep in the timer move him and unit to region1 if blue gets a creep in timer move him and creep to region2. i just dont know how i would specify the condition in that statement =/
 

Joccaren

You can change this now in User CP.
Reaction score
54
Note the
'If CreepEncounterRandomiser equal to or less than 7'

The 'CreepEncounterRandomiser' is different for every player as it repeats the 'set to random integer' action for each player. If you want it to move each player to a different region, create a region array, and, change the (Your Region) to (Your Region [Player number of (Picked PLayer)])

If you really can't figure it out, e-mail me the map at [email protected]
(Email not upload as I am out of room to upload the fixed map to you)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top