幸运房东

幸运房东

Luck be a Landlord Mods
下载由社区成员创作的《幸运房东》内容,并与其他玩家分享你自己的创意!
了解更多
Styrus 2022 年 3 月 19 日 上午 11:06
[Modding] Creating new symbols with symbols and displaying symbols in descriptions
I've got modding figured out for the most part, but there are still things I need help getting down. I need to know how to make symbols create other symbols, the Rain Cloud with Water and King Midas with Coins, and display symbol art in the description, like the Candy symbol being displayed in the Toddler's description. This would help me a lot considering the ideas I have, and it would be helpful if someone could please give me some pointers. Thank you.
< >
正在显示第 1 - 6 条,共 6 条留言
TwoLesbiansInATrenchcoat 13 2022 年 3 月 23 日 下午 8:02 
To have a symbol add another symbol, the effect is "tiles_to_add". As an example, below is a recreation of the base-game Peach symbol:

effects = [
{
"effect_type": "self",
"comparisons": [{"a": "destroyed", "b": true}],
"tiles_to_add": [{"type":"seed"}]
}
]

To add multiple symbols in one effect, add another set of curly brackets with a comma in-between. For instance my modded symbol Pomegranate, which has the same effect as Peach but doubled, includes this line:

"tiles_to_add": [{"type":"seed"},{"type":"seed"}]

You can also replace "type" with "group" if you wanted to, say, add a random gem.
TwoLesbiansInATrenchcoat 13 2022 年 3 月 23 日 下午 8:11 
To display sprites in descriptions, insert without the quotes "<icon_yoursymbolgoeshere>"

Using base-game Peach as the example again, the description would be "Adds <icon_seed> when destroyed."

Groups are a little fancier because of the and/or. A recreation of the base-game Ore would look like this: "Adds <group_gem> or <last_gem> when destroyed."
最后由 TwoLesbiansInATrenchcoat 编辑于; 2022 年 3 月 23 日 下午 8:11
Styrus 2022 年 3 月 24 日 下午 2:29 
Thank you for the help
CaveBacon 2022 年 3 月 31 日 下午 3:40 
I've found it helpful to look at the source for mods I've downloaded, you can find it in the subfolders of Steam\steamapps\workshop\content\1404850\

Also, if you want to add a symbol 10% of the time, you can do something like:
(this is based on how the Ocean mod does it)
{
"comparisons":
[
{
"a": { # Random number between 0 and 100
"starting_value": {
"rand_num": {
"min": 0,
"max": 100
}
}
},
"b": 10,
"less_than": true
}
],
"one_time": true,
"tiles_to_add":
[
{ # Add Suit
"group": "suit"
}
],
"anim": "circle",
}
Styrus 2022 年 4 月 2 日 上午 7:24 
Thanks, this will definitely help my modding adventures more. (No that isn't sarcsm)
yonko 2022 年 4 月 2 日 下午 4:06 
What about making something happen after x turns?
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50