Hi there,
I have a few basic questions.
1. Is there a function witch will return the Rank of a droid ?
2. Is ist posible to deaktivate that the AI gets 12000 energy if the fall under a level
3. I looked to aivolution to figure out how data is saved but couldnt... can somone explain how?
4. Is it posible to play ogg files from the ai script? if how?
5. Is it posible to get the value of the ai slider in the menue?
Last but not least thx for all answers i will get.
AI Mod (some questions)
-
KukY
- Regular

- Posts: 1859
- Joined: 20 Mar 2009, 21:56
Re: AI Mod (some questions)
If you are an AI, you wouldn't care about your units rank...Master_Jochen wrote:1. Is there a function witch will return the Rank of a droid ?
You mean 15 000 when activating autoplay?Master_Jochen wrote:2. Is ist posible to deaktivate that the AI gets 12000 energy if the fall under a level
Ask one who made that AI. I think it was Troman...Master_Jochen wrote:3. I looked to aivolution to figure out how data is saved but couldnt... can somone explain how?
I think not.Master_Jochen wrote:4. Is it posible to play ogg files from the ai script? if how?
How do you mean?Master_Jochen wrote:5. Is it posible to get the value of the ai slider in the menue?
-
Master_Jochen
- Greenhorn
- Posts: 10
- Joined: 21 Jan 2010, 11:38
Re: AI Mod (some questions)
Mhh so does this answer of you mean that the ranks of droids dont make them stronger?KukY wrote: If you are an AI, you wouldn't care about your units rank...
Otherwise my answer is yes i would care about. Why woud i ask this question if i give a damn about the rank.
Sorry but i gues you struck a nerv with this question cause when there is somthing out ther i hate in forums then the answers....witch actuly questions
Why the hell you wanne do this?
LOL but nevermind.
Yes.KukY wrote:You mean 15 000 when activating autoplay?
I mean the diffeculty slider in the menue before you start a multyolayer match every ai has it´s own sliderMaster_Jochen wrote: Master_Jochen wrote:5. Is it posible to get the value of the ai slider in the menue?
How do you mean?
I may bee wrong and the slider is for somthing totaly differend.
-
KukY
- Regular

- Posts: 1859
- Joined: 20 Mar 2009, 21:56
Re: AI Mod (some questions)
Ranks make units stronger, but ranks are only usable in campaign. In MP your unit will be killed before it can reach rank of "Trained" and there is theoreticaly no way to move it up to rank "Hero".Master_Jochen wrote:Mhh so does this answer of you mean that the ranks of droids dont make them stronger?
-
DylanDog
- Code contributor

- Posts: 347
- Joined: 08 Apr 2009, 15:15
- Location: Germany
Re: AI Mod (some questions)
1) NOMaster_Jochen wrote:Hi there,
I have a few basic questions.
1. Is there a function witch will return the Rank of a droid ?
2. Is ist posible to deaktivate that the AI gets 12000 energy if the fall under a level
3. I looked to aivolution to figure out how data is saved but couldnt... can somone explain how?
4. Is it posible to play ogg files from the ai script? if how?
5. Is it posible to get the value of the ai slider in the menue?
Last but not least thx for all answers i will get.
2)-3)-4)-5): All of this has nothing to do with the AI script itself but with the WZ code, you can have allok at what is possible to do with AI scrpt here.
I also looked at AIvolution script to search for a method to save files but had not found it
-
Master_Jochen
- Greenhorn
- Posts: 10
- Joined: 21 Jan 2010, 11:38
Re: AI Mod (some questions)
Hey DylanDog,
I also loaded your AI from you webpage and loocked in the code...
I try to learn by this to codes DyDo and Aivolution
I think your oil hack is predy cool
But by the way i vond some function called getdroidlevel() but i dont think its exesseble from the script ...
But hey if not it shoulded be that hard for the developers to pot in a function like that ... At least i gues so
And the save dater thing kind of works at least the new files are created in my documents folder, called like the maps are called.
I also loaded your AI from you webpage and loocked in the code...
I try to learn by this to codes DyDo and Aivolution
I think your oil hack is predy cool
But by the way i vond some function called getdroidlevel() but i dont think its exesseble from the script ...
But hey if not it shoulded be that hard for the developers to pot in a function like that ... At least i gues so
And the save dater thing kind of works at least the new files are created in my documents folder, called like the maps are called.
-
DylanDog
- Code contributor

- Posts: 347
- Joined: 08 Apr 2009, 15:15
- Location: Germany
Re: AI Mod (some questions)
yes...it WAs cool but I just copied it from BPMaster_Jochen wrote:Hey DylanDog,
I think your oil hack is predy cool
This feature has been removed in the version I am working on as with the current WZ 2.3Beta release there is a much more elegant way of getting the positions of all free oilRes.