Hello guys. So i wanted to ask if there’s a code wich can allow you to go to a precise label in a different scene from the one you are in.
I was thinking something like that
We have two scenes dashingdon and forum.
Example
*choice
#Go to dashindon's 4 label
You will be redirected in a few seconds.
*goto_scene [dashingdon (label 4)]
1 Like
Yes there is more than one option in that regards.
*goto_scene scenename preciselabelname
and also subroutines!
*gosub_scene sceneName LabelName
I hope I helped!
Look at This example:
You arrived in the Market of Othercity. (Descriptions...)
*set local "other"
*set price 0
What do you want to buy?
*fake_choice
# Wine
*set product "Wine"
# Spices
*set product "Spices"
# Precious_stones
*set product "Precious_stones"
# Textiles
*set product "Textiles"
# Boomsticks
*set product "Boomsticks"
# Arms
*set product "Arms"
*gosub_scene Prices [product]price
*line_break
The price for ${product} is:${price}. How many barrel do you want to buy??
Your money is: ${coins}
You have ${cargo_space} in your Airship.
And in the Prices.txt :
*label Wine_price
*if (local = "other")
*set price (Attrib0*((base_price*mkt_rate)*finished_base))
*if (local = "Saar")
*set price (Attrib0*((0*mkt_rate)*finished_base))
*if (local = "Faygard")
*set price (Attrib0*((45*mkt_rate)*finished_base))
*if (local = "Costa Berde")
*set price (Attrib0*((25*mkt_rate)*finished_base))
*if (local = "montainhomes")
*set price (Attrib0*((70*mkt_rate)*finished_base))
*if (local = "Prince's City")
*set price (Attrib0*((20*mkt_rate)*finished_base))
*gosub taxes
*return
*label Spices_price
*if (local = "other")
*set price (Attrib0*((base_price*mkt_rate)*luxury_base))
*if (local = "Saar")
*set price (Attrib0*((40*mkt_rate)*luxury_base))
*if (local = "Faygard")
*set price (Attrib0*((100*mkt_rate)*luxury_base))
*if (local = "Costa Berde")
*set price (Attrib0*((140*mkt_rate)*luxury_base))
*if (local = "montainhomes")
*set price (Attrib0*((120*mkt_rate)*luxury_base))
*if (local = "Prince's City")
*set price (Attrib0*((105*mkt_rate)*luxury_base))
*gosub taxes
*return
*label Precious_stones_price
*if (local = "other")
*set price (Attrib0*((base_price*mkt_rate)*luxury_base))
*if (local = "Saar")
*set price (Attrib0*((750*mkt_rate)*luxury_base))
*if (local = "Faygard")
*set price (Attrib0*((1350*mkt_rate)*luxury_base))
*if (local = "Costa Berde")
*set price (Attrib0*((1100*mkt_rate)*luxury_base))
*if (local = "montainhomes")
*set price (Attrib0*((550*mkt_rate)*luxury_base))
*if (local = "Prince's City")
*set price (Attrib0*((1000*mkt_rate)*luxury_base))
*gosub taxes
*return
*label Textiles_price
*if (local = "other")
*set price (Attrib0*((base_price*mkt_rate)*luxury_base))
*if (local = "Saar")
*set price (Attrib0*((150*mkt_rate)*luxury_base))
*if (local = "Faygard")
*set price (Attrib0*((250*mkt_rate)*luxury_base))
*if (local = "Costa Berde")
*set price (Attrib0*((350*mkt_rate)*luxury_base))
*if (local = "montainhomes")
*set price (Attrib0*((110*mkt_rate)*luxury_base))
*if (local = "Prince's City")
*set price (Attrib0*((170*mkt_rate)*luxury_base))
*gosub taxes
*return
*label Boomsticks_price
*if (local = "other")
*set price (Attrib0*((base_price*mkt_rate)))
*if (local = "Saar")
*set price (Attrib0*((1200*mkt_rate)))
*if (local = "Faygard")
*set price (Attrib0*((300*mkt_rate)))
*if (local = "Costa Berde")
*set price (Attrib0*((1100*mkt_rate)))
*if (local = "montainhomes")
*set price (Attrib0*((700*mkt_rate)))
*if (local = "Prince's City")
*set price (Attrib0*((1000*mkt_rate)))
*gosub taxes
*return
*label Arms_price
*if (local = "other")
*set price (Attrib0*((base_price*mkt_rate)))
*if (local = "Saar")
*set price (Attrib0*((210*mkt_rate)))
*if (local = "Faygard")
*set price (Attrib0*((200*mkt_rate)))
*if (local = "Costa Berde")
*set price (Attrib0*((260*mkt_rate)))
*if (local = "montainhomes")
*set price (Attrib0*((180*mkt_rate)))
*if (local = "Prince's City")
*set price (Attrib0*((240*mkt_rate)))
*gosub taxes
*return
What do you think?
Isn’t cool?
2 Likes
Thank you it helped me greatly
1 Like
Szaal
October 11, 2019, 3:52am
7
The wiki might come in handy in case you want to take a peek at CS advanced feature. There’s also the Beginner’s master-list.
1 Like
system
Closed
October 12, 2019, 3:52am
8
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.