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 270 71 72121 122 Next To the start

old Re: Scripting Questions

wojtek961
User Off Offline

Quote
How to get from key hit to menu builded on "cscr". I can by dialogue, but I need to know how to get there directly.
[plaese write only script triggering menu, because rest i know]
thanks

old Re: Scripting Questions

wojtek961
User Off Offline

Quote
Ok, I'll answer although I was offenced by you - simply in windows notepad \ w notatniku

EDIT:
Can anybody answer me??
edited 1×, last 31.07.09 07:54:11 am

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
@wojtek
dont understand a word you said

Now for my question
The script for spawning falchion in hand in gradirs mod
how to make it spawn in a distance from character

old Re: Scripting Questions

The Second
User Off Offline

Quote
Builder2-0 has written
Is it just me, or is the command list not working?

No, I can't see that list too... it doesn't work.
And nobody never answers for my last guestion?

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
I can't see this too, but if try to find cos or sin command it will be there

Look at "more tags", example isn't working too. "s2:" special thing dont working at all.

old Re: Scripting Questions

wojtek961
User Off Offline

Quote
Ok, I mean that:

> I've got a page [title].s2s, that is built on "cscr" command (interface)
> I press [a key] and it shows that page (it isn't dialogue)
_____________________________________

Sorry for my bad English, but I'm from Poland too

old Re: Scripting Questions

eonsystem
User Off Offline

Quote
trying to make unit go to player
code in game.inf:

1
scriptkey=14,Call

unit script:

1
2
3
on:keyhit14 { 
ai_mode "self","goto","unit","1";
}

yet... nothing happens.
Anyone know what's wrong?

EDIT: Yak! spam!
edited 1×, last 06.08.09 08:30:21 pm

old Re: Scripting Questions

eonsystem
User Off Offline

Quote
wojtek has written
How to get from key hit to menu builded on "cscr". I can by dialogue, but I need to know how to get there directly.
[plaese write only script triggering menu, because rest i know]
thanks


first write the lines

1
scriptkey=0,Menu

in game.inf, also

1
2
3
on:keyhit00 { 
event "menu","global";
}

in game.inf after script=start

now you can set the event menu

1
2
3
on:menu {
cscr "path/path/title.s2s";
}

>>that works?

old Re: Scripting Questions

dart193
User Off Offline

Quote
I want torch extingusihng script. I know how to script fresw water and water objects, but how i can found "inarea" ocean water?

old Re: Scripting Questions

TheZenon
User Off Offline

Quote
I have a question:
i want a siren (sound) to activate at 12 PM, i guess i use the timed trigger and activate the sound ID. the problem is that i don't know that script. please help.
maybe it's much more simple than i think

also i would like to know how to make a radio

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
I know this request ..... strange but
I wanna know how the staff and the hair system works in s2ext

plz explain the scripts

old help

SLY3152
User Off Offline

Quote
i am a newbie and am creating a island of my own in the digging area i gave a script but when i try it it and go to the place and dig stranded 2 exits with an error message saying the parameter must be greater than 0
this is my script

on:dig {
diary "hatrshuit island!","maps\adventure\map02.s2s",
}

please let me know my mistake

old Re: Scripting Questions

Ominus
User Off Offline

Quote
SLY3152 has written
i am a newbie and am creating a island of my own in the digging area i gave a script but when i try it it and go to the place and dig stranded 2 exits with an error message saying the parameter must be greater than 0
this is my script

on:dig {
diary "hatrshuit island!","maps\adventure\map02.s2s",
}

please let me know my mistake


i think it should be

1
2
3
4
on:dig {
diary "hatrshuit island!","maps\adventure\map02.s2s","diary01";
	free "self";
}

And now for my help,
i'm trying to make a hammer wich, when you attack the build site it takes resources from you and puts them into the buildsite storage (so i can make hammers that can build faster)

Now i'm completly new to stranded 2 moding and scripting but my logic tells me it should go something like this

the script put into building site:
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
44
45
46
47
script=start
        on:use {
          exchange "self";
     } 
	on:hit {
		if (getplayerweapon()==30){
			msg "Press the right mousebutton",3;
			msg "to build here!",3;
		}
                elseif (getplayerweapon()==3030){
                       $s=currentid();
                    if (getstored "object",$s,($ireq1)<$areq1){
                    if (playergotitem($ireq1)>0){
                        freestored "unit",1,$ireq1,1;
                        $id=create("item",$ireq1,0,0,1);
                        store $id,"object",$s;
                        freevar "$id";
                    if (playergotitem($ireq1)>0){
                        freestored "unit",1,$ireq1,1;
                        $id=create("item",$ireq1,0,0,1);
                        store $id,"object",$s;
                        freevar "$id";
                        }
                      }
                    }
                elseif (getstored "object",$s,($ireq2)<$areq2){
                    if (playergotitem($ireq2)>0){
                        freestored "unit",1,$ireq1,1;
                        $id=create("item",$ireq2,0,0,1);
                        store $id,"object",$s;
                        freevar "$id";
                    if (playergotitem($ireq1)>0){
                        freestored "unit",1,$ireq1,1;
                        $id=create("item",$ireq1,0,0,1);
                        store $id,"object",$s;
                        freevar "$id";                 
                        }                                           
                      }  
                    }
                  }    
                 else{ 
                      msg "I don't have enough materials!",3;
		speech "negative";
		

}
script=end

and the part i add to the building hoping it will tell the building site script what item it needs and how many

1
2
3
4
5
6
7
8
9
10
11
script=start
	unlockbuilding 3017;
on:buildstart {
freevar "$ireq1","$areq1","$ireq2","$areq2",
    $ireq1=24
    $areq1=10
    $ireq2=23
    $areq2=15
    
}
script=end

the scripts are probably totally wrong, if something like this is even possible. Could someone correct it or point me in the right direction?

All and any help greatly apreciated!!

old Re: Scripting Questions

Withoutname
User Off Offline

Quote
I look at the first page and noticed that is a link to command list. I was so happy! But of course the most of commands is in German. Can someone translate it? Im talking to Germans, who post on english forum.
Sorry for offtop.
To the start Previous 1 270 71 72121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview