Forum
Stranded II General Map EditorMap Editor
10 replies 1
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?) ?
edited 1×, last 08.11.09 03:15:19 pm
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! ?
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
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
2
3
on:use{ dialogue "The path here", "the starting page, in this case blahblahblah"; }
If you've got it right and I haven't horribly failed, you're done.
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
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";
}
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 -
1