Forum
Scripts
what is the script ?
what is the script ?
11 replies
1

ai_stay command.
ai_stay should work.Write your script here and we can help you.
1
ai_stay 100;
You can also replace the id with the parameter "self" if you´re using the script of the unit you want to stay.
If you want to deactivate the command you have to change the modus to 0.
Then it looks like that:
1
ai_stay 100,0;
Please check your script carefully before you´re posting it. Even if you´re a beginner it´s not difficult
Use the command
playergotitem within an
if and destroy the fence with
free.
Write a script for the fence wit on:use, use an
if with a
playergotitem in the condition. And you´ll need an operator like == or > there.Use the command
free then to delete the fence. And please use the command reference DC did to avoid primitive questions here.If you can achieve this you could improve the look of it with several options.
script:if:playergotitem {
free "objects",183 [,1]
}
but not work !
pirate of island, i suggest you to learn lua first
i dont know much of lua but i do the best i can, good luck
Admin/mod comment
Quote removed /
useigor
alex72super: It's the scripting language of Stranded II, not Lua.
Here is a scripting tutorial. Read it first if you want to script something.
1

Offline