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.
Error Details:
Share Link
Current questions and answers regarding the map editor.
Help, kind people, if there's anyone alive here!
Please help me write a simple script. I don't know why, but none of the options work.
Please don't tell me to "read the manual," I've read it many times, and one of the options is actually from there.
It's a simple action: when the main character touches an object (or, even better, enters a specific zone, but for now, even the object doesn't work), they should be teleported to a specific point.
The following scripts don't work:
```
function PobegF (heroname)
SetObjectPosition((heroname), 88, 102, floor -1);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "Proba", "PobegF");
```
It says: attempt to perform arithmetic on a function value.
```
function PobegF (heroname)
SetObjectPosition(heroname, 88, 102, floor -1);
end;
Trigger(4, "Proba", "PobegF");
```
It says the same thing.
```
function PobegF ()
SetObjectPosition("Raelag", 88, 102, floor -1);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "Proba", "PobegF");
```
Same problem.
```
function PobegF ()
SetObjectPosition("Raelag", 88, 102, floor);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "Proba", "PobegF");
```
It says: Wrong type of argument 4, when calling function SetObjectPosition.
```
function PobegF ()
SetObjectPosition("Raelag", destination_151, 138, floor -1);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "Proba", "PobegF");
```
It says: attempt to perform arithmetic on a function value.
```
function PobegF ()
SetObjectPosition("Raelag", destination_151, 138, floor);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "Proba", "PobegF");
```
It says: Wrong type of argument 4, when calling function SetObjectPosition.
What's going on?