Connection ErrorBad RequestSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Error Details:
Share Link
MentStatistics
Registered:
Posts:31,055
#330
Auto-translated
1. You select a town, switch to the Garrison tab, place your army, and in the GarrisonHero tab, place the garrison hero. In the script, you write: EnableHeroAI('hero name', nil); 2. You need to set a trigger for this action. Something like this: function func(parameter) SetObjectPosition('enemy hero name for teleportation', coordinates); MoveHeroRealTime('this hero', town coordinates); Trigger(action code, additional parameters, nil); Trigger(same, but for a duration); end; Trigger(action code, additional parameters, func); I can elaborate further if you provide more details about the goal. ---------
How does such a script look in general?
PlayObjectAnimation('monster name', 'move', IDLE); If it involves rotations, there might be problems... The issue now lies with SetObjectPosition; it theoretically can rotate, but as I clarified, changing the teleportation effect (which we need to eliminate!) only works in 3.1 and only applies to heroes, so I'm not even sure.