Forum

> > Stranded II > Scripts > Scripting Questions
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripting Questions

2.429 Antworten
Seite
Zum Anfang Vorherige 1 24 5 6121 122 Nächste Zum Anfang

alt Re: Scripting Questions

Flying Lizard
User Off Offline

Zitieren
HudaJan hat geschrieben
Flying Lizard hat geschrieben
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

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Flying Lizard hat geschrieben
HudaJan hat geschrieben
Flying Lizard hat geschrieben
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 ?

alt Areal triggers

Starcom
User Off Offline

Zitieren
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

alt Re: Scripting Questions

Gast

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

alt Re: Scripting Questions

Satis
User Off Offline

Zitieren
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 ??

alt Re: Scripting Questions

Satis
User Off Offline

Zitieren
bizzl hat geschrieben
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

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
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

alt Re: Scripting Questions

Satis
User Off Offline

Zitieren
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

alt Re: Scripting Questions

Satis
User Off Offline

Zitieren
Flying Lizard hat geschrieben
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
1× editiert, zuletzt 27.09.07 13:42:02

alt Re: Scripting Questions

bizzl
User Off Offline

Zitieren
Satis hat geschrieben
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 hat geschrieben
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)

alt Re: Scripting Questions

Mc Leaf
Super User Off Offline

Zitieren
Satis hat geschrieben
Flying Lizard hat geschrieben
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 hat geschrieben
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 hat geschrieben
What coding language is this ?? just so I might find som realy good lerning tutorials

Afaik it's a selfmade scriptlanguage.

Satis hat geschrieben
secondly: what is the code:
1
jade 25;

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

Satis hat geschrieben
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

alt Re: Scripting Questions

Satis
User Off Offline

Zitieren
Thanks for the answere bizzl
bizzl hat geschrieben
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 hat geschrieben
Satis hat geschrieben
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
Zum Anfang Vorherige 1 24 5 6121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht