How do I make AI play as heroes? [Solved]
Moderator: Moderators
-
Coley
- Sergeant Major

- Posts: 249
- Joined: Sun Aug 09, 2009 11:27 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
How do I make AI play as heroes? [Solved]
So, last question for this time.
I can change my heroes, I can play them, everything works.
But, the other ai-side in game don´t use the hero...so I always win.
How can I make it, that the other side (and my, of course) uses automic heroes??
Thanks for help
I can change my heroes, I can play them, everything works.
But, the other ai-side in game don´t use the hero...so I always win.
How can I make it, that the other side (and my, of course) uses automic heroes??
Thanks for help
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: Hero
http://www.gametoast.com/forums/viewtop ... =64&t=7088
there is a script here that allows for AI heros for both teams this being said you can still play as the hero take a look at it and possibly use it
there is a script here that allows for AI heros for both teams this being said you can still play as the hero take a look at it and possibly use it
-
Coley
- Sergeant Major

- Posts: 249
- Joined: Sun Aug 09, 2009 11:27 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
Re: Hero
okay, now I can see another link, too
.
I´ll try it
EDIT
uuuh...I downloaded it, and tried to follow the guide...but isn´t the...hugest description.
mmmh...can somebody help me?^^
I do´nt know where I have to add lines in the lua EXACTLY...and this isn´t very good
I´ll try it
EDIT
uuuh...I downloaded it, and tried to follow the guide...but isn´t the...hugest description.
mmmh...can somebody help me?^^
I do´nt know where I have to add lines in the lua EXACTLY...and this isn´t very good
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Hero
sometimes readmes can be really usefull....
Hidden/Spoiler:
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Hero
maybe it explained everything to you, but you didnt understand it? 
-
Coley
- Sergeant Major

- Posts: 249
- Joined: Sun Aug 09, 2009 11:27 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
Re: Hero
sorry, that I am angry. possible, my english isn´t very good. But I know one thing:
this isn´t the easiest and hugest addme and reference....
And when you can explain it, then DO it, and don´t say me I´m to silly to understand anything...
this isn´t the easiest and hugest addme and reference....
And when you can explain it, then DO it, and don´t say me I´m to silly to understand anything...
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Hero
erm, tutorials explain how to do it do you expect us to write all tutorials again and again for everybody who doesnt understand them?
i didnt say you were to silly to understand it, but do you claim that this tutorial is bad/wrong because you cant understand it?
sorry, but im getting really tired of these "i dont understand the tutorial, tell me (EXACTLY) how to do it!" guys, modding isnt easy..
i didnt say you were to silly to understand it, but do you claim that this tutorial is bad/wrong because you cant understand it?
sorry, but im getting really tired of these "i dont understand the tutorial, tell me (EXACTLY) how to do it!" guys, modding isnt easy..
-
Coley
- Sergeant Major

- Posts: 249
- Joined: Sun Aug 09, 2009 11:27 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
Re: Hero
Okay...I can understand you. But did you read this tutorial?
You can´t know where you must put in some words or where you just must change anything....
but I will try it again tomorrow....sorry...
You can´t know where you must put in some words or where you just must change anything....
but I will try it again tomorrow....sorry...
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Hero
but thats exactly what the tutorial tells you
as an example:
what else do you need?
as an example:
and if you cant ifn the place you have to put it in, just open an example lua and look where the line, to which the tutorial references, is written="Tutorial"
2- You will see a bunch of "ScriptCB_DoFile(something here)" commands at the top
3- Add this just after them:
ScriptCB_DoFile("AIHeroSupport")
what else do you need?
- Super_Clone
- High General

- Posts: 803
- Joined: Sat Jul 12, 2008 7:58 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Florida
Re: Hero
You can just set the hero as a unit with a point unlock, set it to allow only 1 of each hero on the battlefield at all times, and the AI will play as that hero throughout the map. Thats a really really really easy, well working, work around I use.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Hero
yes, but whats the problem?Coley wrote:for example, there are two lines wich the CB name
if you are being confused by the
Code: Select all
ScriptCB_SndPlaySound("KAS_obj_13") you can see, that the
Code: Select all
ScriptCB_DoFile("AIHeroSupport")if you are possibly confused by the
Code: Select all
ScriptCB_SetDopplerFactor(0.4)Code: Select all
ScriptCB_DoFile("AIHeroSupport")and if you are possibly confused by the two
Code: Select all
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")Code: Select all
ScriptCB_DoFile("AIHeroSupport")i hope i was able to show how to solve all possible problems you could have meant with your question (yourself) by just drawing logical conclusions


