Azurysu
Cowpoke
Hello! First time posting a thread here, yay.
I'm developing a content pack for Harvey, and I want to do a special heart event that plays only on his birthday. The event has different variations depending on how many hearts you have with him (5-7 triggers the "only friends" version, 8-10 triggers "crush" if you aren't dating him, and the other two are for dating and married) but I can't get it to work (or at least, the part where it needs to actually count the hearts).
I've read Content Patcher's documentation about tokens and wrote the code exactly as it says, and SMAPI's log doesn't show any error when launching the game with the heart conditional on those events. But once I get to 14th winter at 4pm nothing triggers on the saloon. Only the conditionals for "relationship" work (dating and married), but somehow the hearts one doesn't seem to be working.
Does someone know why it may not work as intended? I'm wondering if it has something to do with stating the minimum friendship you need with him for the event to trigger (f Harvey 1250), but I'm not sure.
This one does not trigger properly:
Yet, this one does trigger:
Thank you for your time! :)
PS: Sorry if I have any spelling mistake, english is not my first language!
I'm developing a content pack for Harvey, and I want to do a special heart event that plays only on his birthday. The event has different variations depending on how many hearts you have with him (5-7 triggers the "only friends" version, 8-10 triggers "crush" if you aren't dating him, and the other two are for dating and married) but I can't get it to work (or at least, the part where it needs to actually count the hearts).
I've read Content Patcher's documentation about tokens and wrote the code exactly as it says, and SMAPI's log doesn't show any error when launching the game with the heart conditional on those events. But once I get to 14th winter at 4pm nothing triggers on the saloon. Only the conditionals for "relationship" work (dating and married), but somehow the hearts one doesn't seem to be working.
Does someone know why it may not work as intended? I'm wondering if it has something to do with stating the minimum friendship you need with him for the event to trigger (f Harvey 1250), but I'm not sure.
This one does not trigger properly:
Code:
//5-7 hearts (friend)
{
"Action": "EditData",
"Target":"Data/Events/Saloon",
"When": {
"Hearts:Harvey": "5, 6, 7"
},
"Entries":{
"60310004/u 14/f Harvey 1250/season winter/t 1600 2400": "jaunty/9 20/Harvey 17 20 0 farmer 14 24 0/skippable/pause 300/speak Harvey \"This works!\"/speak Harvey \"We are just friends.\"/end",
}
},
Code:
//dating
{
"Action": "EditData",
"Target":"Data/Events/Saloon",
"When":{
"Relationship:Harvey":"Dating"
},
"Entries":{
"60310006/u 14/season winter/t 1600 2400": "jaunty/9 20/Harvey 17 20 0 farmer 14 24 0/skippable/pause 300/speak Harvey \"This works!\"/speak Harvey \"You're dating me.\"/end",
}
},
PS: Sorry if I have any spelling mistake, english is not my first language!
Last edited: