~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» Heroes of Might & Magic 2 Civilization 2 Mod!
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Blake01 2019-10-13, 21:20

» HoMM Similar Games & HoMM Total Conversion Mods List
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Blake01 2019-10-13, 21:18

» New Old School Might and Magic Game
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby GodRage 2019-10-13, 18:20

» Succession Wars v 0.8.1 Beta Installation Issue
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Orzie 2019-10-08, 03:19

» [H3SW 0.8.1] Along The Coast
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Sibernethy 2019-10-06, 11:30

» Project Ironfist announcements
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Darmani 2019-10-04, 12:32

» [H3SW 0.8.1] Flint's Flight
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Ctesiphon 2019-10-01, 23:19

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: Dwelling Development
H3SW Map List: Work in progress
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
Heroes III: The Succession Wars v0.8.1 Beta
Welcome fellow Enrothians!
Enrothian Fan Art
H3SW Recruitment Point - Enroth Needs You!

Share
 

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

Go down 
AuthorMessage
Unknown_Hero
Vampire
Vampire
Unknown_Hero

Messages : 472
Quality Points : 63
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 : 245
Quality Points : 41
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 : 472
Quality Points : 63
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
 Similar topics
-
» Chat box doesn't scroll as you type
» How do I find out what type of forum mine is?
» request-type-other-image-not-logo
» please-type-code-table-for-phpbb-2-forum-and-how-to-insert-into
» How Do I Put A Rank icon When Ever I Type In My Chat Box?

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: