Forum

> > Stranded II > Scripts > My Dialogue Script Error
Forums overviewStranded II overview Scripts overviewLog in to reply

English My Dialogue Script Error

1 reply
To the start Previous 1 Next To the start

old My Dialogue Script Error

Lonizarte
User Off Offline

Quote
Hello, I am quite new at scripting and (Stranded 2 itself) frankly, I want to know how the dialogue script "works".

I've been trying to create a dialogue script, but after placing the script onto a unit and tried to press [E] while in test mode [F12] on the unit. My Stranded 2 tab closes and a message pops up in my screen =
(Parameter must be greater than 0)

Sorry if this is embarrassing, but here is what I put in the script.

on:use {
dialogue "start"
page=start
title=Turtle
text=start
Hello, who are you?
text=end
button=action:close,The name is nobody.
}

I don't really know how to do this, and Stranded 2 is the first time in pushing me into "Scripting"

Please give me a proper, corrected example of my mistakes and an explanation if possible.

Sidenote: I can't find anything in google that helps me with this.
Another Sidenote: Whenever I use =

on:use {
msgbox "Sign" [,"Hello! I am a sign. And signs like me are great!"];
}
It gives me a script error, I tried taking out the periods and it works. But how do I make the periods stay?

Sorry if I am clueless in this, and just wasted your time.
But I would appreciate a clear help.

old Re: My Dialogue Script Error

Assassin moder
User Off Offline

Quote
You used whole script incorrect!

Use s2 cmd dialogue properly.

This:
1
2
3
4
5
6
page=start
title=Turtle
text=start
Hello, who are you?
text=end
button=action:close,The name is nobody.
need to be in a .s2s or .txt file which is attached in s2 cmd dialogue command.

1
dialogue "start page","path to .s2s / .txt file";

example:
1
dialogue "start","sys/scripts/FILENAME.s2s";
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview