Forum

> > Stranded II > General > Shop script for newbies
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Shop script for newbies

4 replies
To the start Previous 1 Next To the start

old Shop script for newbies

XX
User Off Offline

Quote
1.What we need :
-stranded 2
-time

2.First create new text file and name it "shop" (with no "")

3.Edit the text and write this:
page=start
title=My title
text=start
My text
text=end
button=wherego,button text.
button=action,Close !

page=wherego
title=trading title
### Hempleaf -> Cookie ///This is optional
trade=start
sell=83,5 ///What we give ( we must give item id !)
buy=66,1 ///What we obtain (itemid,amount items )
trade=end
/// We sell 5 hempleafs for 1 cookie
button=action,Close

4.Place this txt file in mods\Stranded II\sys\scripts

5.Open Stranded 2

6.Go to editor

7.Create new unit chieftain

8.Click on him

9.Write this script :
on:start {
     ai_stay "self";
}
on:use {
     dialogue "start","sys\scripts\shop.txt";
}

10.Save or click F12 to test map

Enjoy !

old Corectense

Someone Evil
User Off Offline

Quote
I have a better suggestion for a trade map:

page=start
title=Trader
text=start
Hello, lets trade
text=end
button=trade,Trade
button=action:close,Bye

page=trade
title=trader
# Hemp -> Cookie //or something else
trade=start
sell=83,5 //hemp,5 times. so the first number is item id and the second is mount of items
buy=66,10 //10 cookies
trade=end

else evrything is rigth

old Re: Shop script for newbies

Someone Evil
User Off Offline

Quote
OK, try this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
page=start
title=Trader
text=start
Hello, lets trade
text=end
button=trade,Trade
button=action:close,Bye

page=trade
title=trader
# Hemp -> Cookie
trade=start
sell=83,5 
buy=66,10 
trade=end

sometimes those adds screw the script up.cookies
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview