Forum
Stranded II Scripts Scripting Questionsedit 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?
edited 2×, last 11.06.10 09:43:20 am
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
search the S2 site for camera commands and learn them yourselves
Solve has written
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?
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.
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.
Robertek has written
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.
Solve has written
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?
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!
edited 2×, last 12.06.10 11:16:33 am
AngeltheFallen has written
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.
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
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",....
edited 1×, last 12.06.10 01:28:16 pm
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*.
edited 3×, last 13.06.10 07:33:40 am
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.
Solve has written
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.
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
edited 2×, last 13.06.10 09:35:31 am
1
on:use
Allows to trade with NPC's
Zaikantos has written
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
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! }
edited 1×, last 13.06.10 10:05:27 am
This script with trade you have to put in a textcontainer...
The script for the native:
1
2
3
2
3
on:use { 	dialogue "start","ID of the Textcontainer"; }
Hecky3 has written
You have to use dialogue !
This script with trade you have to put in a textcontainer...
The script for the native:
This script with trade you have to put in a textcontainer...
The script for the native:
1
2
3
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.
edited 1×, last 13.06.10 09:29:44 pm