Draglio

 
Tavern Dweller
|
posted November 09, 2025 09:30 PM |
|
|
function in script for map
Hello!
I am editing a map on Homm5 ToE.
In the script editor (in Map properties menu), I put the script but the Check button displays the following warning:
Function myfunction not defined, line 1
even with the example of the HOMM5_Editor_Practical_Guide.pdf (function Meeting( heroname )) gives this warning...
what is wrong?
my script is:
Function Region3 (player)
if player==PLAYER_3 then
p3a=GetObjectOwner(Portail3)
if p3a=PLAYER_NONE then
SetObjectOwner(Portail3,PLAYER_3)
end
Trigger(REGION_ENTER_WITHOUT_STOP_TRIGGER, "Ground3", nil)
end
end
Trigger(REGION_ENTER_WITHOUT_STOP_TRIGGER,"Ground3","Region3")
____________
|
|