Forum

> > Stranded II > Scripts > use this script to be able to build a hammock
Forums overviewStranded II overview Scripts overviewLog in to reply

English use this script to be able to build a hammock

8 replies
To the start Previous 1 Next To the start

old use this script to be able to build a hammock

monkeypal
User Off Offline

Quote
use this script to be able to build and sleep in a hammock

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
### Hut
id=13
group=building
objectid=206
req=7,20
req=24,50
req=15,60
req=26,20
script=start
	unlockbuilding 11;
	unlockbuilding 12;
	unlockbuilding 101;
	unlockbuilding 15;
	unlockbuilding 19;
	unlockbuilding 20;
	unlockbuilding 17;
	unlockbuilding 9;
	unlockbuilding 216;
script=end

use unlockbuilding 216; to build it after you build a hut the unlock building 9; is also to get a bownet just to tell you now to sleep in it add this

1
2
3
4
5
6
7
8
9
on:use {
  if (getplayervalue(4)>5) {
    event "sleep","global";
  } else {
    speech "negative";
    msg "Maybe later,",3;
    msg "I'm not tired yet!",3;
  }
}

can only use if you sleep bar is the eqivalent to jumping 5
times

if you do not under stand pm me

old Re: use this script to be able to build a hammock

Hurri04
Super User Off Offline

Quote
what I do not understand is what you want to tell us with this.

do you have a problem with a script here?

or do you just want to show off this script?
in this case I have to inform you that this script is rather simple, your "tutorial" on how to do it is rather bad and the modding community of S2 is mostly dead so it's a bit wasted effort.

old Re: use this script to be able to build a hammock

monkeypal
User Off Offline

Quote
its not a tutorial i'm just preventing future threads and i thought someone might find this to be cool instead of just sleeping on the ground.plus to make the game more interesting you could remove the sleep button from the script to have the need of a hammock


this is also simple to you because you are a modder i loved your cast away mod video but i never actually could figure out how to use the file properly. so i can under stand how this is simple to you i posted this for one more reason,because it is my first script i made better without help

are you looking at my threads just to talk crap on me cuz im a newbie?

old Re: use this script to be able to build a hammock

Rainoth
Moderator Off Offline

Quote
And now you know so please don't think that he's trying to talk crap, he just raised a logical point.

Honestly, I don't think many people will write at all. It's best to wait for S3. I'm sure the amount of people talking about scripting and the game overall will be quite huge.

old Re: use this script to be able to build a hammock

Hurri04
Super User Off Offline

Quote
I do not mean to "talk crap" but from what I've seen from your replies in some other threads you often say yourself that you are confused about basic things.

I'd recommend to carefully read the scripting tutorial first (http://www.stranded.unrealsoftware.de/s2_scripting1.php) and try to do everything it teaches you.

afterwards you could even go down the list of commands (http://www.stranded.unrealsoftware.de/s2_commands.php?list=all2) just to see which commands there are and maybe get a better overview of what is doable in this game and what isnt.
since DC didnt translate many command descriptions you might want to throw the german page into google translate to understand certain commands.

next I'd recommend to try creating a map in the editor and make some simple scripted quests.

I made like half a dozen maps myself before I even started modding and they all ended up being crappy and I never uploaded them but I learnt the very basics of scipting in S2 with them.

old Re: use this script to be able to build a hammock

monkeypal
User Off Offline

Quote
thanks i have just started on a script myself to get a waterskin i know someone already did this but i want to make mine myself. will you tell me how to use your castaway mod i love the building system

i cant figure out how to get the full waterskin to turn back into a bag i tried alteritem but it said it could only be for on:useso now i dont know how to add on:use
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview