~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» [H3SW v0.8.0] Game not launching (Assert violation in file...) or lacking VCRUNTIME140.DLL
by Orzie Yesterday at 20:21

» Cartographers' Guild
by dodge 2019-01-18, 18:02

» Is H3:SW 0.8 stable without using HD mod
by badlemon 2019-01-18, 06:05

» Heroes III: The Succession Wars v0.8.0 Beta
by badlemon 2019-01-16, 09:36

» [EIP=0x59174188] Crash at start of the game
by Orzie 2019-01-16, 07:14

» [EIP=0x00426020] Crash During Enemy AI Turn - Division By 0
by Orzie 2019-01-16, 05:55

» Forum Admins Feed
by GodRage 2019-01-16, 02:26

Poll
"Wait" in HoMM2?
Yes
80%
 80% [ 55 ]
No
20%
 20% [ 14 ]
Total Votes : 69
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
H3SW General Discussion
H3SW: Dwelling Development
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
H3SW Map List: Work in progress
Welcome fellow Enrothians!
Enrothian Fan Art
Commanders?
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
avatar

Messages : 459
Quality Points : 58
Registration Date : 2015-09-06

PostSubject: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes   2019-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
avatar

Messages : 237
Quality Points : 38
Registration Date : 2014-12-27

PostSubject: 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.
Back to top Go down
Unknown_Hero
Vampire
Vampire
avatar

Messages : 459
Quality Points : 58
Registration Date : 2015-09-06

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

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




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

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
-
» How do I find out what type of forum mine is?
» Unknown Font Type
» Diane Schuler Was Drunk and High at the Time of the Crash That Killed 8
» How To Change Font in Profile (Bold Type Font on Sub Profile)
» please type code table for phpbb 2 forum and how to insert into

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: