HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AMAI Question?

05-01-2005, 07:12 PM#1
Guest
Uh well i am making this Melee Training map and i wondered if i could use triggers pick the AMAI profile for the computers instead of the AI being picked randomly
05-02-2005, 12:06 AM#2
Zalamander
Quote:
Originally Posted by Bobhellbringer
Uh well i am making this Melee Training map and i wondered if i could use triggers pick the AMAI profile for the computers instead of the AI being picked randomly

you can customize a DE version or lock it to a specific profile with the strategy/profile manager before install it to a map, if you are more skilled with jass you can edit the profile selecting code to fit your needs at row 2020 in common.eai

Code:
  if debug_profile != -1 then
    set profile = debug_profile
  else
    loop
      set profile = GetRandomInt(0, profile_length)
      exitwhen (p_race[profile] == R_RANDOM or p_race[profile] == own_race) and not IsProfileUsed(profile)
    endloop
  endif

currently this part of the profile system sets the computer profile to the locked one to all computer is onf is locked (debug_profile) or else it randomly distributes profiles to all computers in the game vut never same to any one so that only one profile appear once in a game the normal way.
05-02-2005, 10:02 PM#3
Guest
i was shooting for a way to make it so like
Player Red types -set blue and you choose like Aggressive, Turtle, ETC but the other idea is i manually import the AMAI profiles but anyway thanx for the great ai