Forum

> > Stranded II > Scripts > Scripting Questions
Forums overviewStranded II overview Scripts overviewLog in to reply

English Scripting Questions

2,429 replies
Page
To the start Previous 1 24 5 6121 122 Next To the start

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
HudaJan has written
Flying Lizard has written
no, not with your skills in scripting (it is possible, but it's pretty difficult)

If it's so, you can't just type the script, I have to write to write to native units?


No, cause it IS dificult, I don't want to thinl about it now

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Flying Lizard has written
HudaJan has written
Flying Lizard has written
no, not with your skills in scripting (it is possible, but it's pretty difficult)

If it's so, you can't just type the script, I have to write to write to native units?


No, cause it IS dificult, I don't want to thinl about it now

Sooo, anyone else ?

old Areal triggers

Starcom
User Off Offline

Quote
Hi,

I've some problems to understand what are these areal triggers.

I think it is a trigger wich is trigged on when something happens in the defined area. But the local trigger do the same thing.

Then I would to try it. I create an areal trigger with a range of 30, trigged on Flint item equal to 1 and executing the script:
1
2
3
on: trigger {
msg "Cool, that works";
}

I put a flint to the beach then I try to debug it using F12.

In the debug, I take the flint and walk to the trigger area but nothing happens

old Re: Scripting Questions

Guest

Quote
I have tried to drop the flint and the result is the same: Nothing happens

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
have you set the trigger to active?

There's a little box where you've got to tell the Programmm the trigger is active.

old Re: Scripting Questions

Satis
User Off Offline

Quote
Hi!

I'm looking for at script to check if an building is build or exists on the island.

I have tryed alot of combinations with the inrange, exists and so on, but I can't get it to work.

anyone knows how to do this ??

old Re: Scripting Questions

Satis
User Off Offline

Quote
bizzl has written
What you need is s2 cmd count -> $x=count("object",XXX);


oh THANKS it worked

one question related with this one thou.
Do I need to; free $x; ??
Just so I don't make any memory leak

old Re: Scripting Questions

bizzl
User Off Offline

Quote
I don't think so, since everything created with s2 cmd create is stored in the same array as all things placed in the map editor, which will get freed automatically

old Re: Scripting Questions

Satis
User Off Offline

Quote
Can some one define what the diferent numbers in this find script is ?
1
find=23,300,1,1,88

I can guess it will find a item number 23 but the rest is unknown to me :S

Please give me a hint

Kind Regards
Satis

old Re: Scripting Questions

Satis
User Off Offline

Quote
Flying Lizard has written
find=Item type, probability, max, min, necessary Item


Okay just to be sure I understood it Flying Lizard.

1
find=23,300,1,1,88

if i translate it it will be:
1
Find="a stone", "300% chance to drop ?", "Max 1 drop pr. time", "Min 1 drop pr. time", "require a pickaxe to gather"

as you can see, I'm not totaly sure of the probability

is the probability the droprate in % or like from 1-300 (like a randome thing)
maby you can give me an examble om what the 300 means like there is 1 out of 300 time chance to drop

hope I make sence :S

--------------------------------------------------------------------------
I know that i might ask alot, but I am realy new to this coding language but still I can see alot of the code how they work since I have programed in both Delphi and PHP.

First of:
What coding language is this ?? just so I might find som realy good lerning tutorials

secondly: what is the code:
1
jade 25;
I have tryed to look it up in the scriptcommand.inf but it only shows
1
jade¦player¦ Wert
witch I dont get mutch info from :S

--------------------------------------------------------------------------

Kind regards
Satis
edited 1×, last 27.09.07 01:42:02 pm

old Re: Scripting Questions

bizzl
User Off Offline

Quote
Satis has written
First of:
What coding language is this ?? just so I might find som realy good lerning tutorials

It's S2Script
DC coded it himself, there is no premade script engine.
It's style is a mix of Basic and C, but that's all.

Satis has written
secondly: what is the code:
1
jade 25;
I have tryed to look it up in the scriptcommand.inf but it only shows
1
jade¦player¦ Wert
witch I dont get mutch info from :S

it's equivalent to s2 cmd consume 0,25,25,25; which means that it changes hunger, thirst and tireness by 25 (to better, I think)

old Re: Scripting Questions

Mc Leaf
Super User Off Offline

Quote
Satis has written
Flying Lizard has written
Okay just to be sure I understood it Flying Lizard.

1
find=23,300,1,1,88

if i translate it it will be:
1
Find="a stone", "300% chance to drop ?", "Max 1 drop pr. time", "Min 1 drop pr. time", "require a pickaxe to gather"

Right...

Satis has written
is the probability the droprate in % or like from 1-300 (like a randome thing)
maby you can give me an examble om what the 300 means like there is 1 out of 300 time chance to drop

Some of the things that I also will never understand...

Satis has written
What coding language is this ?? just so I might find som realy good lerning tutorials

Afaik it's a selfmade scriptlanguage.

Satis has written
secondly: what is the code:
1
jade 25;

Changes hunger, thirst and tiredness by the indicated worth (here 25).

Satis has written
I have tryed to look it up in the scriptcommand.inf but it only shows
1
jade¦player¦ Wert
witch I dont get mutch info from :S

There is a documentation about every scriptcommand, but unfortunately in german:

click me

old Re: Scripting Questions

Satis
User Off Offline

Quote
Thanks for the answere bizzl
bizzl has written
it's equivalent to s2 cmd consume 0,25,25,25; which means that it changes hunger, thirst and tireness by 25 (to better, I think)

it will gain to te worce


Mc Leaf thanks for your answerer.
Mc Leaf has written
Satis has written
I have tryed to look it up in the scriptcommand.inf but it only shows
1
jade¦player¦ Wert
witch I dont get mutch info from :S

There is a documentation about every scriptcommand, but unfortunately in german:

click me


I know that it have not been translated, but I understand some german sinc I hade 1 year in 7. grade but that's a long time ago, so I realy dont remember so mutch of it anymore :S

kind regards
Satis
To the start Previous 1 24 5 6121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview