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 258 59 60121 122 Nächste Zum Anfang

alt Re: Scripting Questions

Hazy
User Off Offline

Zitieren
ok, how would i be able to get the game to end after the person has succesfully 'found' a certain object.
when I say found, i mean they have pressed the use key on that object
hope you understand

alt Re: Scripting Questions

bezmolvie
User Off Offline

Zitieren
Color shade verticly (y) and horizontally (x) A 100% blue shade would turn the unit/object/item blue. The brightness will differ the shade though

alt How do you add a Trigger to a Unit

Jimi Hendrix
User Off Offline

Zitieren
I am tring to add a script to Whales and Dolphines,so when your in range xx ,they make there whale songs and dolphine chatter.I have it working for "on:use",but i need to set a trigger,so
when inrange,"unit",1,xx;
it will play the sounds.Im not sure if a script has to start with the "on" to make it work,but i tried on:trigger,but as I have no trigger set "I dont know how to",it does not work,and I mean a script that is in the "units",wordpad document,not just the set trigger on a map.I want it to be,hard coded into the "unit" so if any one uses them in editore,that if ((inrange,unit,1,xxx it will always play the .ogg file.The speech files are better than the sfx,because each .ogg plays a differnt recording each time.And it is way smaller file.Audacity is a free programme which converts wav files into .oggs,so you can make your own voice,or any sound you want just add a number at the end with same name,like,dolphine1,dolphine2 put in sfx/speech folder,and in the unit script on:use speech "dolphine";

I need a script for "on:trigger {
The sooner I get script for this,my mod will be released.Cheak out the "does any body want my mod thread.
5× editiert, zuletzt 26.01.09 08:07:03

alt Re: Scripting Questions

Builder2-0
User Off Offline

Zitieren
Jimi Hendrix hat geschrieben
I am tring to add a script to Whales and Dolphines,so when your in range xx ,they make there whale songs and dolphine chatter.I have it working for "on:use",but i need to set a trigger,so
when inrange,"unit",1,xx;
it will play the sounds.Im not sure if a script has to start with the "on" to make it work,but i tried on:trigger,but as I have no trigger set "I dont know how to",it does not work,and I mean a script that is in the "units",wordpad document,not just the set trigger on a map.I want it to be,hard coded into the "unit" so if any one uses them in editore,that if ((inrange,unit,1,xxx it will always play the .ogg file.The speech files are better than the sfx,because each .ogg plays a differnt recording each time.And it is way smaller file.Audacity is a free programme which converts wav files into .oggs,so you can make your own voice,or any sound you want just add a number at the end with same name,like,dolphine1,dolphine2 put in sfx/speech folder,and in the unit script on:use speech "dolphine";

I need a script for "on:trigger {
The sooner I get script for this,my mod will be released.Cheak out the "does any body want my mod thread.

on:ai_idle1

See my post in your thread.

-Builder

alt Fishing Net Question

Jimi Hendrix
User Off Offline

Zitieren
Man I had an idea,where on placeing of your fishing net,if on changeday or something timer,it is in range of fish,create that item x,y,z.And instead of writeinging 40 or so "elseif's if there is a way to say "if inrange of "unit,with behavior fish ,or be way cool if I could somehow say "if in range of unit ,in units_aquatic.

Oh yeah thanks Builder2-0,for the max items fix.
1× editiert, zuletzt 28.01.09 06:50:26

alt Re: Scripting Questions

WRCMeister
User Off Offline

Zitieren
If your asking for rewrite of the system/engine Stranded runs on it wont happend, and that way works just fine

alt Re: Scripting Questions

Rapture333
User Off Offline

Zitieren
How do I change the map if a player walks into a certain area? And will it save whatever happened on the previous map? i.e. build a house etc go to teleporter which takes you to a new map go back and everything's still there.

alt Re: Scripting Questions

Rapture333
User Off Offline

Zitieren
How do I create diary entries upon start of the game. Also how would I create entries when a player walks into a certain area?

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
event start
1
2
3
on:start {
s2:diary blah,blah;
}
For the certain area: Put the areal trigger on the map, set the radius on which size do you need and (the most important thing) check the 'Instant effect' box.
Then type in the script field of the trigger:
1
2
3
on:trigger {
s2:diary {
}

alt Re: Scripting Questions

Hurri04
Super User Off Offline

Zitieren
better use:
1
2
3
4
on:trigger {
s2:diary blah, blah;
[b]s2:free "self";[/b]
}

or there will be a new diay entry every time you enter the area

alt Re: Scripting Questions

Firecat
User Off Offline

Zitieren
i trying to make a mod where i add a item to apeear in the rocks, and i found this.

1
2
3
4
find=23,90,2
find=254,40,3
find=21,90,7
find=23,300,1,1,88

I know that the first number is the item id, but the others?.

alt Re: Scripting Questions

Firecat
User Off Offline

Zitieren
Thx Bloodshot, now i have another problem.
I try to make a headphone with the next script:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
### Headphone
id=121
name=Headphone
group=stuff
icon=gfx\Headphone.bmp
model=gfx\Headphone.b3d
shine=0.9
mat=metal
weight=25
scale=0.5
info=Neat!, now i can have some music.
script=start
	on:use {
		:>:play "music.wav";
		msg "Totally cool!",4;
		process "listening",2000;
	}
	on:eat {
		speech "negative";
		msg "Use the use button",3;
	}
script=end

The problem is now that when i start the music, it loops even in the editor, And even in the menu!
So my question is:
•There is a way to stop that music?
Zum Anfang Vorherige 1 258 59 60121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht