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 285 86 87121 122 Next To the start

old Re: Scripting Questions

Castero66
User Off Offline

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

old Re: Scripting Questions

Crazyx
User Off Offline

Quote
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?

old Re: Scripting Questions

Someone Evil
User Off Offline

Quote
xeNium has written
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

old Re: Scripting Questions

Crazyx
User Off Offline

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

old Re: Scripting Questions

Someone Evil
User Off Offline

Quote
xeNium has written
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?

old Re: Scripting Questions

Crazyx
User Off Offline

Quote
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...

old Re: Scripting Questions

Crazyx
User Off Offline

Quote
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.

old Re: Scripting Questions

Crazyx
User Off Offline

Quote
Bloodshot has written
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...

old Re: Scripting Questions

Someone Evil
User Off Offline

Quote
xeNium has written
Bloodshot has written
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.

old Re: Scripting Questions

Vibhor
User Off Offline

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

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
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

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
Vibhor has written
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).

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
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
To the start Previous 1 285 86 87121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview