• when you fuse a demon and the cathedral of shadows says "Whoops! Something went wrong" thats how you know its good

Other Observations

handful of things I've noticed while ukgk deving that didn't warrant their own page

go back to main ukagaka dev page


Miscellaneous Tidbits

seemingly no hard cap on the number of balloons a specific type of balloon has.

if you need to use quotation marks in strings for variables, you can wrap the string in apostrophe marks and it will be fine

EX (from weather code)

_reghumidity=className=humidity><span class=><span>(\d/*)<span class=Percentage__percentSymbol__2Q_AR> //will break because of the multiple quotation marks in the string 
    
_reghumidity='className='humidity'><span class='><span>(\d/*)<span class='Percentage__percentSymbol__2Q_AR'>' //apostrophes around the string - OK

2D Array Quirks

2D Arrays in sakurascript are pseudo-arrays, where the rows are strings separated with commas. you can’t change variables in the middle of a row; you need to redo the row and then re-add it to the 2D Array

EX: Food = “Apples, Oranges, Pears, Bananas”
Colors = “Yellow, Green, Blue, Red”
2DArray = (Food, Colors)

Food[2] -> “Pears”
2DArray[0][2] -> “Pears”
Colors[1] -> “Green”
2DArray[1][1] -> “Green”

2DArray[1][1] = “Purple” //will result in your ghost crashing
instead...

Colors[1] = “Purple”
2DArray[1] = Colors //this changes 2DArray[1][1] to “Purple”

Script Input and You

ctrl+s brings up script input, which you can use to test dialogue, change variables, and test lines of code.

%(variable) prints the variable
%(variable = value) changes variable to value. value can be a number, string, other variable, NULL (which erases the variable)

you can’t use quotation marks in script input. Use apostrophes for strings instead.

EX:
%(color = “Purple”) //wont work to set color to Purple
%(color = ‘Purple’) //OK


go back to main ukagaka dev page