• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Run Kitty Run AI

Status
Not open for further replies.
Level 2
Joined
Apr 30, 2013
Messages
10
Does anyone have an idea on how to make an AI in the game run kitty run for the players? For example, if the kitty come near a dog he will go back and try to turn around to reach the end of the line without being touched, maybe with the triggers 'Unit Within Range' or 'Issue Order Targeting A Point' with 'Point With Polar Offset' of the position of a unit... any help would be nice :)
 
Level 2
Joined
Apr 30, 2013
Messages
10
Run kitty run is a game where you need to reach the middle by passing trough unit (dog) without being touched, the dog wander randomly in the line and can touch you so you need to move your hero away of it, and I was wondering if one knew how to make an AI that would be able to do that, like if a dog run to him he would move away and try to move around to reach the end of the line
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,233
Only two approaches I know.
1. Cheat...
You make the AI run in a straight line but move the dogs out the way. This is your equivalent to getting extra resources, building faster or having the entire map revealed.

2. Make the dogs slower than the cats. If the dogs are faster the AI will always have a chance to fail if the dogs decide to move. You will still need very advanced route planning AI.
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
How good do you want the AI to be?

If you make it too good, what's the point in playing?

@DSG
In RKR, the players have to run along paths about 512 wide, that are filled with dogs that have Wander (neutral) and permanent immolation that instantly kills players. They run slower than players.

One way would be:
Code:
every 0.03 seconds
 if (number of dogs nearby) = 0
 then
  run to end of path
 else
  check distance to each nearby dog
  pick closest dog
  run directly away from closest dog

If two dogs run directly at the bot from opposite sides, the bot will most likely die.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,233
In RKR, the players have to run along paths about 512 wide, that are filled with dogs that have Wander (neutral) and permanent immolation that instantly kills players. They run slower than players.
Incorrect. The paths in RKR get narrower the closer to the centre you are. Also every attempt causes more dogs to spawn. Some times sliding mechanics is used, other times its just walking.

The dogs can also be faster than the player so if they move you die anyway.
 
Status
Not open for further replies.
Top