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 285 86 87121 122 Nächste Zum Anfang

alt Re: Scripting Questions

Castero66
User Off Offline

Zitieren
Ummm...
This is maybe a stupid question but how do i make my own adventure?
(if its possible of course )

alt Re: Scripting Questions

Crazyx
User Off Offline

Zitieren
Hey, I wanted to a diary message pop up when a map starts in Stranded II (Multiplayer).
It will be a briefing-alike.

Could someone tell me how to create it in a start of a map, and how to colour text there?

alt Re: Scripting Questions

Someone Evil
User Off Offline

Zitieren
xeNium hat geschrieben
Hey, I wanted to a diary message pop up when a map starts in Stranded II (Multiplayer).
It will be a briefing-alike.

Could someone tell me how to create it in a start of a map, and how to colour text there?


Simple:
1
2
3
on:start {
	diary "Brief","*diary source*";
}

Should be atleast, if not: you'd better contact The Oracle File

alt Re: Scripting Questions

Crazyx
User Off Offline

Zitieren
And how to colour text in diary entries (red, yellow, etc.)?
I should use the "©25500000" colours?

alt Re: Scripting Questions

Someone Evil
User Off Offline

Zitieren
xeNium hat geschrieben
And how to colour text in diary entries (red, yellow, etc.)?
I should use the "©25500000" colours?


No, use:
!1 for Gold
!2 for gray
!3 for red
!4 for green
!5 for black
!6 for dairy text (reqomended: scripts)

However:
-does anyone know if trades can create an event/script or if it does for defult?

alt Re: Scripting Questions

Crazyx
User Off Offline

Zitieren
Ah, thanks.

I worte this:
1
2
3
4
5
6
7
8
on:start {
     diary "Brief","Le Survival
version 2.3.4 test beta
*blah blah blah
blah blah blah
blah blah blah
...*";
}
And only first line was wrote in the diary...

alt Re: Scripting Questions

Crazyx
User Off Offline

Zitieren
Thanks, Vectar.
And how to make this:
When I click on a native, he will show a chat message and I'll have an "OK" button.

alt Re: Scripting Questions

Crazyx
User Off Offline

Zitieren
Bloodshot hat geschrieben
use s2 cmd dialogue and the sub commands.

Could you be more specific and give me the full code, please?
And the page is in German though...

alt Re: Scripting Questions

Someone Evil
User Off Offline

Zitieren
xeNium hat geschrieben
Bloodshot hat geschrieben
use s2 cmd dialogue and the sub commands.

Could you be more specific and give me the full code, please?
And the page is in German though...


on the native (in game script)
1
on:use { dialogue "start","sys/scripts/nativetalk.s2s"; }

on the file "sys/scripts/nativetalk.s2s"
1
2
3
4
5
6
page=start
title=Native
text=start
*your chat text here*
text=end
button=action:close,Bye

This should at least work, might contain typing mistakes.

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
how do i create diary entries?
and one more thing
are dairy entry possible in multiplayer mode?

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
See the monkey carrier script and study it
the real deal would be from on:create
_________________________________
on other note
Is there a way by which i can make everything stop by a keypress?
not actually every thing but just movement of player units and projectiles

alt Re: Scripting Questions

Vectarrio
User Off Offline

Zitieren
Vibhor hat geschrieben
Is there a way by which i can make everything stop by a keypress?
not actually every thing but just movement of player units and projectiles

Probably you can. Just make scriptkey;
then make in scriptkey event:
1
2
3
4
5
6
on:keyhit|yourkeyID|{
	loop ("units"){
		addstate "unit",loop_id(),"speed";
		statevalue "unit",loop_id(),"speed",-10;
	}
}
I didn't try this thing, and i don't know if it works.
Units maybe will go backward...
If it will be so, just change the value (-10).

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
it really makes unit go back
but the projectile speed is the same

EDIT:It also increases speed of everything
it even increased my speed
Zum Anfang Vorherige 1 285 86 87121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht