Stone Story RPG

Stone Story RPG

36 hodnocení
Tutorial: How to Mod with Stonescript
Vytvořil: Rex
This tutorial covers the basics of adding cosmetic mods and unlocking new mini-games that are layered on top of Stone Story. The game's built-in language, Stonescript, began as a tool to optimize farming, with just enough commands to drink potions and swap weapons at the right time. With version 2.8 the language got a major upgrade, unlocking huge potential for modding.

This assumes you've found the Mind Stone item. If you're a new player and don't have it yet, but want to get modding right away, there is a cheatcode to unlock it early: Go to the main menu's 'Codes' screen and type 'import'. You should see a new Workstation option that says 'Automate'.
2
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Pets
One obvious cosmetic are cute pets that follow you around. You can design your own, but let's start with the Frog which comes packaged by default with the game.



1. The key addition in 2.8 is the 'import' command. To add the Pet Frog go to your Mind Stone and type
"import Cosmetics/PetFrog"



2. Visit any location to see the frog hopping and following your moves. Make sure your Mind Stone is powered on!



3. You can customize the frog's color by locating the PetFrog.txt script that is included in your save file directory. On Windows it would be at:

C:/Users/(userName)/AppData/LocalLow/Martian Rex, Inc_/Stone Story/(steam id)/Stonescript/Cosmetics/PetFrog.txt


Froggo is also happy to get Loot.
Hats
Another hot cosmetic are hats. Let's create a new hat, it's very easy. For this to work you will need to beat the game's main story and have the big head turned on.

1. Open your Mind Stone and add the following script. This is a command that draws relative to the player's head:
>h-2,-3,#yellow,ascii ##_ #| | _|_|_ asciiend

2. Visit any location to see the hat!
tip: During a run you can press 'M' to edit the Mind Stone. No need to exit to the Workstation.



3. Customize the color (change #yellow to something else) and edit the ASCII-art to come up with your own hat designs.
tip: You can call the draw command multiple times to compose a multi-colored hat.

Next, let's move your hat script into an external file, which is great practice. External files makes it easy to share and easy to turn scripts on/off.

4. Inside the Cosmetics folder, next to the PetFrog.txt, create a new text file and name it MyHat.txt



5. Open MyHat.txt and copy the hat code from the Mind Stone to the external file. Save it.

6. In your Mind Stone replace the hat code with
import Cosmetics/MyHat

7. Visit a location to make sure it works!
Mini-games
You may notice next to the Cosmetics folder another folder called Games. Stone Story 2.8 comes with 3 mini-games that are still in development. All are playable, but the most complete game right now is Blackjack. Let's play it!



1. In your Mind Stone type
import Games/Blackjack

2. Visit the Waterfall location to play!

Other games include Deadwood Fishing and Asteroids. Both functional, but still in early development as of 2.8. All scripts are open source, which is a great way to learn some advanced scripting ideas.
import Fishing
import Games/Asteroids

Note: All 3 of these are configured to be played at the Waterfall and will draw on top of each other. An option is to comment out the ones you are not playing. The double bar // in front of a line disables it:
//import Games/Blackjack //import Fishing import Games/Asteroids

tip: When a mini-game fills the whole screen, the pause menu is no longer visible. To exit the Waterfall location you can type the shortcuts P (pause) then L (leave).
Next Steps
Need help with a script? Made something cool? The community would love to see your ideas and are very helpful. Visit the Discord server at:
https://discord.gg/StoneStoryRPG

Learn more about Stonescript from the official manual:
https://stonestoryrpg.com/stonescript/

-
Počet komentářů: 14
Janitor Henry 11. zář. v 11.40 
Fascinating...
Kotyaplay 22. čvn. v 14.45 
Change color of frog on android 10
Kotyaplay 22. čvn. v 14.42 
How do it from mobile
CAMANDERSOL 21. kvě. v 23.13 
Nevermind, turns out it was all just because I didn't have the right capitalization
CAMANDERSOL 20. kvě. v 18.00 
Hi, I'm playing on mobile and when I put in the line of code for the pet ghost from the throwing stones quest it doesn't work.
This is how I formatted it
Import cosmetics/petboo

It keeps saying it can't parse it
trevordrake547 18. dub. v 5.28 
to access the "codes" menu, you have to tap the smaller moon a few times, and for mobile, to enter the code into the codes menu, you need to have it copied to your clipboard
jasonpowell2012 3. led. v 9.43 
how do i make a hat on mobile
TheGreen246 27. pro. 2023 v 11.30 
where's the codes thing in main menu
G-18 16. lis. 2023 v 17.05 
Thanks, I'm playing on mobile from the app store, never knew it was on steam but this was very helpful nonetheless.
RoyRex168 26. bře. 2023 v 1.26 
How about if I want to transfer my mobile saves to my pc?