Auto-translated
1. Good afternoon, I need a script for a quest, that is, a quest where you need to reach a specific region.
2. And also, is there a script that adds creatures to the hero's army after a dialogue?
Added 4 minutes later
Alinksolo, I'm just curious, did you even try to find an answer to your question? Well, let's say, by reading the list of functions from the developers. And maybe you would have noticed "AddHeroCreatures" with your own eyes. How would you translate that? 🤔 I don't know. But question number 2 would be solved.
And question number 1 would also be solved if you just thought about it and knew what triggers are.
1. In the quest properties, set OBJECTIVE_KIND_MANUAL.
In the script:
function ReachRegion(hero)
if hero=="Hero Name" then
SetObjectiveState("Scripted quest name", OBJECTIVE_COMPLETED)
sleep(20)
Win()
end
end
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Region Name", "ReachRegion")
2. AddHeroCreatures("Hero Name", ID, quantity)
If I understand correctly, he needed the quest to be completed. But then why Win? With it, the player automatically wins. Although, I might be wrong.