Unknown_Hero Mage
Messages : 778 Quality Points : 78 Registration Date : 2015-09-06
| Subject: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes 2019-01-14, 08:53 | |
| @DarmaniWhen I was designing the script for the Unknown Mod, I noticed that heroes controlled by AI players did not trigger the "OnLocationVisit (type, x, y)" function when they moved to a location. This poses a problem because the script is supposed to give bonuses also for heroes controlled by the AI. And I wish I could write a specific code for AI heroes when they visit different locations with, for example, a function like "IsHeroControlledByAI (hero)" or "AiPlayer ()". Is it an oversight? | |
|
Darmani Master Modder
Messages : 288 Quality Points : 47 Registration Date : 2014-12-27
| Subject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes 2019-01-14, 15:36 | |
| This is correct. I've updated the documentation to make this clear, and added something to our Ideas list to make this function also work for the AI. | |
|
Unknown_Hero Mage
Messages : 778 Quality Points : 78 Registration Date : 2015-09-06
| Subject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes 2019-01-15, 03:42 | |
| Okay, thank you so much. | |
|
Sponsored content
| Subject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes | |
| |
|