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 299 100 101121 122 Nächste Zum Anfang

alt Re: Scripting Questions

Solve
User Off Offline

Zitieren
ive downloaded something now... how do i make them b3d then? plz i really want to know.

edit got it!!! thx alot! now theres a huge castle on my iland

edit: i need ideas for my cooking level, what will happend when you level up?
2× editiert, zuletzt 11.06.10 09:43:20

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
make so that if he cooks alot he can cook more materials
My turn:
I want an Item to stay in ground...like I place a crystal in ground(not the on:dig stuff) and yeah inside the island(this involves spade from MM) but when I play the map the item stands atop of the land instead of underground

alt Re: Scripting Questions

Solve
User Off Offline

Zitieren
are there any camera tutorials out on the internet, when there are seqwhenses (spelling?) like in the first map on stranded2 where you see the yacht. plz ansver

alt Re: Scripting Questions

Robertek
User Off Offline

Zitieren
Solve hat geschrieben
ive downloaded something now... how do i make them b3d then? plz i really want to know.

edit got it!!! thx alot! now theres a huge castle on my iland

edit: i need ideas for my cooking level, what will happend when you level up?


As someone said, you could make it give a bit more, or instead of more you could make it actually give more health or food bar per piece that you eat.
You could also make it so that high level foods slow how fast you get hungry.

Another idea have them increase your health or hunger bars length.

A certain level could give you a special ability like "well fed" which makes you stronger or gives you more speed or something along those lines.

Being a certain level makes you well fed gives you more carrying capacity.

Or you can apply such changes to the food itself. Say you're very high in cooking, give them recipes which allows them to make certain foods which give them benefits.

alt Probably asked before...

AngeltheFallen
User Off Offline

Zitieren
Hello, new to the site and game. Been working on a huge map. Has a swamp, volcano, village, ect....

I am not great with scripting (no matter how I try, just can not comprehend it)

My question is this:

Can anyone give me a script to get Units to sell stuff? Need to know how to make them sell certain things and what they take for their items.


Also, does anyone have a map like the one I am making? i would like to see how bad I am screwing up.....heh. I do not use Mods, btw.

alt Re: Scripting Questions

Solve
User Off Offline

Zitieren
Robertek hat geschrieben
Solve hat geschrieben
ive downloaded something now... how do i make them b3d then? plz i really want to know.

edit got it!!! thx alot! now theres a huge castle on my iland

edit: i need ideas for my cooking level, what will happend when you level up?


As someone said, you could make it give a bit more, or instead of more you could make it actually give more health or food bar per piece that you eat.
You could also make it so that high level foods slow how fast you get hungry.

Another idea have them increase your health or hunger bars length.

A certain level could give you a special ability like "well fed" which makes you stronger or gives you more speed or something along those lines.

Being a certain level makes you well fed gives you more carrying capacity.

Or you can apply such changes to the food itself. Say you're very high in cooking, give them recipes which allows them to make certain foods which give them benefits.


thx! this whas very helpfull!
2× editiert, zuletzt 12.06.10 11:16:33

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
AngeltheFallen hat geschrieben
Hello, new to the site and game. Been working on a huge map. Has a swamp, volcano, village, ect....

I am not great with scripting (no matter how I try, just can not comprehend it)

My question is this:

Can anyone give me a script to get Units to sell stuff? Need to know how to make them sell certain things and what they take for their items.


Also, does anyone have a map like the one I am making? i would like to see how bad I am screwing up.....heh. I do not use Mods, btw.


dont have that kinda map but sure the script is in scripts section in mods/s2/sys look for random native and stuff

alt Re: Scripting Questions

Solve
User Off Offline

Zitieren
i am making a arrow and all that stuff storage, but its not working, i can take stuff from it but not put in to the storage... i am so pissed ! plz help me!!

this is the script:

### Fletchstorage
id=236
group=building
name=Fletchstorage
icon=gfx\storage.bmp
model=gfx\storage.b3d
health=100
fx=16
mat=wood
scale=3
script=start
on:build_finish {
event "iskill_construct","global";
event "fletchstoragebuild",0,0;
}
on:use {
exchange "self",1,21,23;
exchange "self",51,53,54,55,56,59,60,61,62,63,64,124,123;
}
on:hit {
event "iskill_strenght","global";
}
script=end

and i have taken away the first exchange "self",....
1× editiert, zuletzt 12.06.10 13:28:16

alt Re: Scripting Questions

AngeltheFallen
User Off Offline

Zitieren
Ok found it:

page=trade
title=Trade with native
### Bread -> Stones
trade=start
sell=44,1
buy=23,5
trade=end
### Bread -> Leafes
trade=start
sell=44,1
buy=15,15
trade=end
### Bread -> Lianas
trade=start
sell=44,1
buy=26,3
trade=end
### Bread -> Branches
trade=start
sell=44,1
buy=24,10
trade=end
### Bread -> Trunk
trade=start
sell=44,1
buy=7,1
trade=end
### Bread -> Wool
trade=start
sell=44,2
buy=48,3
trade=end
### Bread -> Iron
trade=start
sell=44,3
buy=85
trade=end
### Bread -> Strong Healherb
trade=start
sell=44,4
buy=18,1
trade=end
### Bread -> Spears
trade=start
sell=44,5
buy=52,10
trade=end
button=action:close,Goodbye!

Ok most of it looks simple. I will try to mess around with these abit. If I have trouble, I will be back with more Noob questions. tyvm.

Edit Ok, tried the script, but i can not get it to work. I hit 'E' to open chatbox, but nothing happens. Is there more script I have to input for that?

Plus is there a script I can throw in there to make the NPC's stay put?

Sorry for all the questions.....I suck at scripting......*sigh*.
3× editiert, zuletzt 13.06.10 07:33:40

alt Re: Scripting Questions

Solve
User Off Offline

Zitieren
if you on start write

on:use {
bla
bla
bla
bla
bla
bla
bla
bla
}

that might do it but im not really sure...

plz dont forget about my last question havent thought it out yet..

also i want to make a fletching workshop. so when you stand in the house and fletch the fletching time is gone, but i really cant get that to work either.

and i have checked stranded 2 comands at the stranded 2 site.

alt Re: Scripting Questions

AngeltheFallen
User Off Offline

Zitieren
Solve hat geschrieben
if you on start write

on:use {
bla
bla
bla
bla
bla
bla
bla
bla
}

that might do it but im not really sure...

plz dont forget about my last question havent thought it out yet..

also i want to make a fletching workshop. so when you stand in the house and fletch the fletching time is gone, but i really cant get that to work either.

and i have checked stranded 2 comands at the stranded 2 site.


edit: Deleted my comment
2× editiert, zuletzt 13.06.10 09:35:31

alt Re: Scripting Questions

Zaikantos
User Off Offline

Zitieren
1
on:use
Means that when you "use" them (standard key "e") the following script will be executed. Put your script behind it.

>Allows to trade with NPC's

alt Re: Scripting Questions

AngeltheFallen
User Off Offline

Zitieren
Zaikantos hat geschrieben
Mind posting the script it fails on?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on:use {
page=start
title=Chieftain
text=start
Hello stranger!
Me is chieftain of tribe huge. I can brew potion magic for you!
text=end
button=trade,Yeah! Potions!
button=action:close,Thanks but I don't need potions

page=trade
title=Trade with chieftain
# Meat -> Juice
trade=start
sell=10,3
buy=47,1
trade=end
# Meat -> Healthpotion
trade=start
sell=10,5
buy=36,1
trade=end
# Meat -> Airpotion
trade=start
sell=10,1
sell=109,10
buy=114,1
trade=end
# Meat + Bread -> Speedpotion
trade=start
sell=10,1
sell=44,1
buy=112,1
trade=end
# Meat + Bread -> Immortalpotion
trade=start
sell=10,6
sell=44,2
buy=113,1
trade=end

button=action:close,Goodbye, great chieftain!
}
1× editiert, zuletzt 13.06.10 10:05:27

alt Re: Scripting Questions

Hecky3
User Off Offline

Zitieren
You have to use s2 cmd dialogue !
This script with trade you have to put in a textcontainer...
The script for the native:
1
2
3
on:use {
	dialogue "start","ID of the Textcontainer";
}

alt Re: Scripting Questions

AngeltheFallen
User Off Offline

Zitieren
Hecky3 hat geschrieben
You have to use s2 cmd dialogue !
This script with trade you have to put in a textcontainer...
The script for the native:
1
2
3
on:use {
	dialogue "start","ID of the Textcontainer";
}


Tried looking at the Dialogue page. Sorry, i don't speak German...

Do I just throw this on top of the rest of the script?

Edit: tried it. got a text box when i try to talk to him, but no text in the box.
1× editiert, zuletzt 13.06.10 21:29:44
Zum Anfang Vorherige 1 299 100 101121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht