~ 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 ~

The Enroth diehard fan community
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» fheroes2 General Announcements
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby sirDranik 2024-05-24, 01:00

» The YouTube thread
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby DanilaRud015 2024-05-19, 06:00

» Songs of Conquest
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Mefista 2024-05-16, 09:29

» ...to XP run...
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby CATMAN 2024-03-30, 03:16

» WARNING - The dreaded moment is here: Heroes 6 servers shutting down
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Blake01 2024-03-29, 23:04

» Songs of Silence (HoMM like game)
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby Blake01 2024-03-27, 16:52

» Heroes Orchestra's 5th Birthday concerts with Paul Romero
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitimeby rrravyn 2024-03-23, 22:45

Poll
Global announcements should be:
Everlasting, 1 for each project.
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar110%[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar11100%[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar110%[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Redbar12
 0% [ 0 ]
Total Votes : 6
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
Introduce yourself
H3SW General Discussion
H3SW Map List: Work in progress
H3SW: Dwelling Development
Forum Admins Feed
The Floody Land
Enrothian Fan Art
Heroes III: The Succession Wars v0.8.1 Beta

 

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

Go down 
2 posters
AuthorMessage
Unknown_Hero
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
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 : 288
Quality Points : 47
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
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
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
-
» [Ironfist ver 1.3.0+] Bug with fonction OnLocationVisit(type, x, y)
» [Ironfist ver 1.2.1+][Script System] OnLocationVisit(type, x, y)
» [Ironfist ver 0.8.4] Enemy heroes reveal the map for the player (original Heroes 2 save file)
» [Script System][Suggestions] GetResourceGeneratorOwner(type, x, y) and more
» [Script System][Suggestions] GetLocationSpell(type, x, y) and more

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: