Pitsu wrote:**************************************************
Now my Problem is thus. I have Isabel in a Prison, PLAYER_1 must go free her and bring her to region "isabelhome" Now I have tried her ingame name Isabell and the name in the Prison Isabel yet although the code is error free it does not triger the win when she is taken to the regon. what is missing?.
startThread(IsabelH);[/code]
Many thanks !
Maybe the AIattractor commands indeed need to be in threads in order to run properly. Doesn't sound very practical solution from Nival, but who knows.
But why do you use a thread for region entering? Wouldnt it be simpler and less memory demanding to use region enter and non stop trigger? Additionally, not sure if it makes any difference but I always used win(); not win(void);
humm gosh i wasn't thinking at all. no thread is needed for a region.
I tried win() and win(void) the win(void) is what they have in the manual
and now I am brain dead.. LOL. so i took Isabel out of the Prison and placed her so now need to figure out a region (code) she can go to and win the game.
As for the AIPlayerAttractor threads, that is all on a different map my Grail.h5m map and it would not run without starting the function. I put it up because
Marzhin wrote:
I'm wondering how the SetAIPlayerAttractor works exactly... I have a line that says :
Code:
SetAIPlayerAttractor("arkania",PLAYER_2,2);
I did some expermentation with the AIPlayerAttractor and it seems to work like this. HE Cheats!
What I mean by cheats is if PLAYER_1 town is low on mobs and Priority = 2 he will make haste to come and put you out of your misery. However of you have built up your town the same Priority = 2 will make him wait a week or three and build up troops. This tells me he has spys in PLAYER_1 towns, but if you make Priority = 3
he will come at you with what ever he has as a army.