幸运房东

幸运房东

Luck be a Landlord Mods
下载由社区成员创作的《幸运房东》内容,并与其他玩家分享你自己的创意!
了解更多
TheLemon27 2023 年 7 月 15 日 下午 3:12
effect help?
I wanted to make a symbol with a mildly complex effect but im not sure how to code it (or if its even possible) can someone help? the description for it is the following: "Gives 2x more coin for each adjacent cat. Destroys itself if not adjacent to at least 1 cat."
< >
正在显示第 1 - 1 条,共 1 条留言
TheLemon27 2023 年 12 月 30 日 下午 6:50 
ok, ive made effects that (i think) should work for what im doing, but now the game is crashing on startup. can someone tell me where the error is in my code? (code below)

values = [0] effects = [ { "comparisons": [{"a": "saved_values", "b": 0, "greater_than": true, "value_num": 0}], "value_to_change": "saved_values", "value_num": 0, "diff": -1, }, { "effect_type": "adjacent_symbols", "comparisons": [{"a": "type", "b": cat}, {"a": "saved_values", "b": 0, "less_than_eq": true, "target_self": true, "value_num": 0}], "target_self": true, "value_to_change": "saved_values", "value_num": 0, "diff": 1, }, { "effect_type": "adjacent_symbols", "comparisons": [{"a": "type", "b": cat}], "target_self": true, "value_to_change": "value_multiplier", "diff": 3, }, { "comparisons": [{"a": "saved_values", "b": 1, "value_num": 0, "less_than": true}], "value_to_change": "destroyed", "diff": true, } ]
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50