Connection ErrorBad RequestThis page went staleSession 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.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Good people, please help me with some advice. I really want to set up a strong army to guard the dwarven treasure. I made the object inactive and added a trigger on touch with the question "Are you ready to fight the guardian?". If the answer is yes, a message should appear, and a battle should begin. The message appears, but the battle doesn't happen. I would like to understand why. I will be grateful for any help, because I'm tired of tinkering with it.
```
dir = GetMapDataPath()
Trigger(OBJECT_TOUCH_TRIGGER, "tres1", "tres1F")
function tres1F (heroName)
number=GetCurrentPlayer()
QuestionBoxForPlayers(number,dir.."Capture.txt", "captureF", "nocaptureF")
end
function captureF (heroName)
number=GetCurrentPlayer()
MessageBoxForPlayers(number,dir.."gettreasure.txt")
StartCombat (heroName, nil, 2,
CREATURE_THANE, 20,
CREATURE_WARLORD, 20, nil)
end
function alreadyCapturedF (heroName)
number=GetCurrentPlayer()
MessageBoxForPlayers(number,dir.."alreadyCaptured.txt")
end
function nocaptureF (heroName)
number=GetCurrentPlayer()
MessageBoxForPlayers(number,dir.."Coward.txt")
end
SetObjectEnabled("tres1", false)