Forum

> > Stranded II > General > Map Editor
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Map Editor

10 replies
To the start Previous 1 Next To the start

old Map Editor

Lar5
User Off Offline

Quote
Hi, i realy like this game and it would be fun to make my own maps, but i've run into a little problem... In adventurer mode and random isle mode you get things writen into ur diary and you can buy stuff... How do i enable this in Map editor? Any help would be greatfull...

old Re: Map Editor

Lar5
User Off Offline

Quote
Where do i learn that?

Could any1 plzz make me a script that allows me to buy ans sell things from the npcs (chieftain,pirate,weed guy,profesor-can i buy things from him?) ? cookies
edited 1×, last 08.11.09 03:15:19 pm

old Re: Map Editor

Lar5
User Off Offline

Quote
How do i add them to my map?

Unit(hempguy)-scripst:

page=start
title=Grandpa
text=start
Hey you. How's it going?
text=end
button=trade,I want to trade.
button=action:close,Don't bother me!

page=trade
title=Trade with grandpa
### Hempleaf -> Cookie
trade=start
sell=83,5
buy=66,1
trade=end
### Hempleaf -> Trunk
trade=start
sell=83,10
buy=7,1
trade=end
### Hempleaf -> Grapes
trade=start
sell=83,15
buy=45,3
trade=end
### Hempleaf -> Grain Pile
trade=start
sell=83,15
buy=42,3
trade=end
### Hempleaf -> Plums
trade=start
sell=83,15
buy=116,3
trade=end
### Hempleaf -> Coconut
trade=start
sell=83,20
buy=27,3
trade=end
### Hempleaf -> Banana
trade=start
sell=83,20
buy=14,3
trade=end
### Hempleaf -> Cacao Fruit
trade=start
sell=83,25
buy=67,3
trade=end
### Hempleaf -> Coffee Fruits
trade=start
sell=83,25
buy=70,3
trade=end
button=action:close,Cheers! ?

old Re: Map Editor

Vibhor
User Off Offline

Quote
Place anyguy on the map
any object or unit will work
now compile it with even script

on:use
page=start
title=Grandpa
text=start
Hey you. How's it going?
text=end
button=trade,I want to trade.
button=action:close,Don't bother me!

page=trade
title=Trade with grandpa
### Hempleaf -> Cookie
trade=start
sell=83,5
buy=66,1
trade=end
### Hempleaf -> Trunk
trade=start
sell=83,10
buy=7,1
trade=end
### Hempleaf -> Grapes
trade=start
sell=83,15
buy=45,3
trade=end
### Hempleaf -> Grain Pile
trade=start
sell=83,15
buy=42,3
trade=end
### Hempleaf -> Plums
trade=start
sell=83,15
buy=116,3
trade=end
### Hempleaf -> Coconut
trade=start
sell=83,20
buy=27,3
trade=end
### Hempleaf -> Banana
trade=start
sell=83,20
buy=14,3
trade=end
### Hempleaf -> Cacao Fruit
trade=start
sell=83,25
buy=67,3
trade=end
### Hempleaf -> Coffee Fruits
trade=start
sell=83,25
buy=70,3
trade=end
button=action:close,Cheers! ?

bla bla bla
if i am correct

old Re: Map Editor

bezmolvie
User Off Offline

Quote
First you need to know a little bit of s2 scripting, but not much. Trading 'scripts' are pretty straightforward. First, make the script. You usually want to make it outside the game, so go to the scripts folder, which is in the sys folder, which is in the Stranded II folder, which is wherever you downloaded it. Then make a new text file. Heres how to write the dialog script: page=blahblahblah, this should be put at the top as it defines what the following text is, and how to switch to it. Next there is the title; title=Blah, which is, well, the title. Next is the text; text=start, this signals the start of the text in the dialog. Under this put anything you want to be said. Following is the text=end. This is very important, because if you started the text and forgot to put it in, you'll get some weird mistakes. Next is the buttons. There are four things that you can do. First, you can switch to a different page, second close the dialog, third execute the script, and finally signal an event. The button's structure is set up like this: button=(what you want to happen),Button text. To go to a different page, put the page title in place of (what you want to happen), to close replace it with action:close, and to execute a script, add: script:Your script here. The event is not commonly used, but it is sometimes. For a trade page, you cannot have any text (I believe). To add something to trade put:
trade=start
sell=(put the items Id in),(Put the quantity here)
buy=(put the items Id in),(Put the quantity here)
trade=end
Then you can put the buttons down here. You can have many, many, pages to a file. Now that your done, save it and get the path memorized, or copy it from the address bar above your folder, if it's there. Next start up stranded II. Go to the map editor, and open up the unit you want to speak's properties. Go to the script area, and put this in.
1
2
3
on:use{
dialogue "The path here", "the starting page, in this case blahblahblah";
}
where it says "The path here", paste, or write down the folders path, but add the file name. "The starting page" is the title of the page where you want the dialog to start at. Because of this, you can have all your scripts from different characters in one text file. Test your map.
If you've got it right and I haven't horribly failed, you're done.

old Re: Map Editor

bezmolvie
User Off Offline

Quote
Did you add .rtf or .txt or whatever type of file extension your using to the end of the filename?

old Re: Map Editor

Lar5
User Off Offline

Quote
no..

Stranded II-mods-Stranded II-sys-scripts-random_char_native ..... it says its a S2S file. He sells stuff, but only then i meet him at random isle...
is it?:

on:use{
dialogue "sys-scripts-random_char_native", "start";
}
edited 1×, last 08.11.09 09:12:54 pm

old Re: Map Editor

Vibhor
User Off Offline

Quote
Lar5 has written
no..

Stranded II-mods-Stranded II-sys-scripts-random_char_native ..... it says its a S2S file. He sells stuff, but only then i meet him at random isle...
is it?:

on:use{
dialogue "sys-scripts-random_char_native", "start";
}


Wrong
put/ instead of -
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview