~ Forums of Enroth ~
Would you like to react to this message? Create an account in a few clicks or log in to continue.

~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» [Heroes 2 Bugs] Aqua Barrier Is Brown Barrier In Game
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Unknown_Hero Yesterday at 08:46

» [Heroes 2 Bugs] Artifacts Not Given With Ultimate Artifacts
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Unknown_Hero Yesterday at 08:45

» Did you know that... HoMM2 Units!
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Orzie 2020-07-10, 22:27

» [Heroes 2 Bugs] Summon Boat Spell Bug
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Unknown_Hero 2020-07-09, 03:47

» H3SW General Discussion
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Orzie 2020-07-08, 05:22

» Changes to the game's graphics
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Unknown_Hero 2020-07-06, 08:28

» Heroes of Might and Magic 2: Desecrated Lands
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby GodRage 2020-07-04, 22:46

Poll
"Wait" in HoMM2?
Yes
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar1180%[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar12
 80% [ 55 ]
No
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar1120%[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar12
 20% [ 14 ]
Total Votes : 69
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
H3SW General Discussion
H3SW Map List: Work in progress
H3SW: Dwelling Development
Heroes III: The Succession Wars v0.8.1 Beta
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
Introduce yourself
Project Ironfist announcements
Welcome fellow Enrothians!

 

 [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes

Go down 
AuthorMessage
Unknown_Hero
Vampire
Vampire
Unknown_Hero

Messages : 496
Quality Points : 66
Registration Date : 2015-09-06

[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Empty
PostSubject: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes   [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitime2019-01-14, 08:53

@Darmani

When 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? Smile
Back to top Go down
Darmani
Master Modder
Master Modder
Darmani

Messages : 254
Quality Points : 44
Registration Date : 2014-12-27

[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Empty
PostSubject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes   [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitime2019-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.
Back to top Go down
Unknown_Hero
Vampire
Vampire
Unknown_Hero

Messages : 496
Quality Points : 66
Registration Date : 2015-09-06

[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Empty
PostSubject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes   [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitime2019-01-15, 03:42

Okay, thank you so much. Smile
Back to top Go down
Sponsored content




[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Empty
PostSubject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes   [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitime

Back to top Go down
 
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
~ Forums of Enroth ~ :: Modding Guild :: Heroes of Might and Magic II: Project Ironfist :: Modding and Mapmaking-
Jump to: