Elliot 14 hearts event-like mod

AnoniKonloq

Newcomer
I'm not sure if this is the right place to post this, and if not I'll delete the post.
My friends and I are working on a birthday gift mod for a friend, and we plan on adding more hearts events to his favourite characters (Alex in particular). As such we were planning a 14 hearts event like Elliott's, where he would go to town to play professionally and afterwards return, giving a custom item (like a trophy or something alike). We checked a bunch of in-game files and we found this:
C++:
3912125/f Elliott 3500/O Elliott/t 500 1500/p Elliott/U 8: "continue/-10000 -1000/farmer -100 -100 2 Elliott -100 -100 2/addConversationTopic ElliottGone1 0/addConversationTopic elliottGone 6/addWorldState elliottGone/skippable/warp Elliott 63 15/warp farmer -100 -100/faceDirection Elliott 2/showFrame Elliott 38/viewport 64 15 clamp true/pause 1000/pause 2000/playSound doorClose/warp farmer 64 15/positionOffset farmer 0 16/pause 500/faceDirection farmer 3/emote farmer 8/pause 500/showFrame Elliott 39/emote Elliott 16/pause 500/speak Elliott \"@! I've just received the most exciting news!\"/pause 50/jump Elliott/pause 500/speak Elliott \"It's very short notice... but I've been invited to do a reading tour for my book, '%book'!\"/emote farmer 32/showFrame Elliott 0/faceDirection Elliott 1/pause 500/emote Elliott 28/pause 400/speak Elliott \"...I'll be out of town for a week. Will you be okay?$s\"/quickQuestion #Yes, I'll be fine.#I'll be happy as a clam!#Don't go!(break)emote Elliott 20\\speak Elliott \"I'll miss you very much, my dear.#$b#And I'll write to you every day, of course!\"\\emote farmer 20(break)jump Elliott\\pause 500\\speak Elliott \"Hah... good one. Now, don't get too excited...$8#$b#I'll be sure to write to you every day. I'll miss you!\"(break)speak Elliott \"But, my dear... This is a rare opportunity for me. I must go!$s#$b#Please don't make me feel guilty about this. I'll write to you every day, and I'll be back before you know it.\"/pause 1000/animate Elliott true true 100 35/animate farmer true true 100 101/specificTemporarySprite heart 63 15/pause 2000/stopAnimation Elliott/showFrame Elliott 4/stopAnimation farmer/pause 500/speak Elliott \"I leave early tomorrow morning...#$b#I need to pack!$8\"/end dialogue Elliott \"Don't let me forget my hairbrush, my hairspray, my fine-tooth comb, and my pomegranate conditioner!\"" #!String
    3912131/e 3912130/A ElliottGone6/n elliottLetter5/x elliottLetter6 true: "null" #!String
    3912130/e 3912129/A ElliottGone5/n elliottLetter4/x elliottLetter5 true: "null" #!String
    3912129/e 3912128/A ElliottGone4/n elliottLetter3/x elliottLetter4 true: "null" #!String
    3912128/e 3912127/A ElliottGone3/n elliottLetter2/x elliottLetter3 true: "null" #!String
    3912127/e 3912126/A ElliottGone2/n elliottLetter1/x elliottLetter2 true: "null" #!String
    3912126/e 3912125/A ElliottGone1/x elliottLetter1 true: "null" #!String
However, we're not sure of how to make the whole "spouse goes away for a week" thing. We can quite understand the preconditions, but not the way to make the character not appear during the time they're "away". We're quite new on this, and it's the first time we do modding on Stardew Valley, so we're not very aware of how things work.
Thank you all in advance
 

Kreeate

Rancher
I'm not sure if this is the right place to post this, and if not I'll delete the post.
My friends and I are working on a birthday gift mod for a friend, and we plan on adding more hearts events to his favourite characters (Alex in particular). As such we were planning a 14 hearts event like Elliott's, where he would go to town to play professionally and afterwards return, giving a custom item (like a trophy or something alike). We checked a bunch of in-game files and we found this:
C++:
3912125/f Elliott 3500/O Elliott/t 500 1500/p Elliott/U 8: "continue/-10000 -1000/farmer -100 -100 2 Elliott -100 -100 2/addConversationTopic ElliottGone1 0/addConversationTopic elliottGone 6/addWorldState elliottGone/skippable/warp Elliott 63 15/warp farmer -100 -100/faceDirection Elliott 2/showFrame Elliott 38/viewport 64 15 clamp true/pause 1000/pause 2000/playSound doorClose/warp farmer 64 15/positionOffset farmer 0 16/pause 500/faceDirection farmer 3/emote farmer 8/pause 500/showFrame Elliott 39/emote Elliott 16/pause 500/speak Elliott \"@! I've just received the most exciting news!\"/pause 50/jump Elliott/pause 500/speak Elliott \"It's very short notice... but I've been invited to do a reading tour for my book, '%book'!\"/emote farmer 32/showFrame Elliott 0/faceDirection Elliott 1/pause 500/emote Elliott 28/pause 400/speak Elliott \"...I'll be out of town for a week. Will you be okay?$s\"/quickQuestion #Yes, I'll be fine.#I'll be happy as a clam!#Don't go!(break)emote Elliott 20\\speak Elliott \"I'll miss you very much, my dear.#$b#And I'll write to you every day, of course!\"\\emote farmer 20(break)jump Elliott\\pause 500\\speak Elliott \"Hah... good one. Now, don't get too excited...$8#$b#I'll be sure to write to you every day. I'll miss you!\"(break)speak Elliott \"But, my dear... This is a rare opportunity for me. I must go!$s#$b#Please don't make me feel guilty about this. I'll write to you every day, and I'll be back before you know it.\"/pause 1000/animate Elliott true true 100 35/animate farmer true true 100 101/specificTemporarySprite heart 63 15/pause 2000/stopAnimation Elliott/showFrame Elliott 4/stopAnimation farmer/pause 500/speak Elliott \"I leave early tomorrow morning...#$b#I need to pack!$8\"/end dialogue Elliott \"Don't let me forget my hairbrush, my hairspray, my fine-tooth comb, and my pomegranate conditioner!\"" #!String
    3912131/e 3912130/A ElliottGone6/n elliottLetter5/x elliottLetter6 true: "null" #!String
    3912130/e 3912129/A ElliottGone5/n elliottLetter4/x elliottLetter5 true: "null" #!String
    3912129/e 3912128/A ElliottGone4/n elliottLetter3/x elliottLetter4 true: "null" #!String
    3912128/e 3912127/A ElliottGone3/n elliottLetter2/x elliottLetter3 true: "null" #!String
    3912127/e 3912126/A ElliottGone2/n elliottLetter1/x elliottLetter2 true: "null" #!String
    3912126/e 3912125/A ElliottGone1/x elliottLetter1 true: "null" #!String
However, we're not sure of how to make the whole "spouse goes away for a week" thing. We can quite understand the preconditions, but not the way to make the character not appear during the time they're "away". We're quite new on this, and it's the first time we do modding on Stardew Valley, so we're not very aware of how things work.
Thank you all in advance
Hello,

I'd suggest you try the "Making Mods" channel on the Stardew Valley Discord. There are a lot of knowledgeable people over there that could certainly assist you.
 

Atravita

Cowpoke
I'm not sure if this is the right place to post this, and if not I'll delete the post.
My friends and I are working on a birthday gift mod for a friend, and we plan on adding more hearts events to his favourite characters (Alex in particular). As such we were planning a 14 hearts event like Elliott's, where he would go to town to play professionally and afterwards return, giving a custom item (like a trophy or something alike). We checked a bunch of in-game files and we found this:
C++:
3912125/f Elliott 3500/O Elliott/t 500 1500/p Elliott/U 8: "continue/-10000 -1000/farmer -100 -100 2 Elliott -100 -100 2/addConversationTopic ElliottGone1 0/addConversationTopic elliottGone 6/addWorldState elliottGone/skippable/warp Elliott 63 15/warp farmer -100 -100/faceDirection Elliott 2/showFrame Elliott 38/viewport 64 15 clamp true/pause 1000/pause 2000/playSound doorClose/warp farmer 64 15/positionOffset farmer 0 16/pause 500/faceDirection farmer 3/emote farmer 8/pause 500/showFrame Elliott 39/emote Elliott 16/pause 500/speak Elliott \"@! I've just received the most exciting news!\"/pause 50/jump Elliott/pause 500/speak Elliott \"It's very short notice... but I've been invited to do a reading tour for my book, '%book'!\"/emote farmer 32/showFrame Elliott 0/faceDirection Elliott 1/pause 500/emote Elliott 28/pause 400/speak Elliott \"...I'll be out of town for a week. Will you be okay?$s\"/quickQuestion #Yes, I'll be fine.#I'll be happy as a clam!#Don't go!(break)emote Elliott 20\\speak Elliott \"I'll miss you very much, my dear.#$b#And I'll write to you every day, of course!\"\\emote farmer 20(break)jump Elliott\\pause 500\\speak Elliott \"Hah... good one. Now, don't get too excited...$8#$b#I'll be sure to write to you every day. I'll miss you!\"(break)speak Elliott \"But, my dear... This is a rare opportunity for me. I must go!$s#$b#Please don't make me feel guilty about this. I'll write to you every day, and I'll be back before you know it.\"/pause 1000/animate Elliott true true 100 35/animate farmer true true 100 101/specificTemporarySprite heart 63 15/pause 2000/stopAnimation Elliott/showFrame Elliott 4/stopAnimation farmer/pause 500/speak Elliott \"I leave early tomorrow morning...#$b#I need to pack!$8\"/end dialogue Elliott \"Don't let me forget my hairbrush, my hairspray, my fine-tooth comb, and my pomegranate conditioner!\"" #!String
    3912131/e 3912130/A ElliottGone6/n elliottLetter5/x elliottLetter6 true: "null" #!String
    3912130/e 3912129/A ElliottGone5/n elliottLetter4/x elliottLetter5 true: "null" #!String
    3912129/e 3912128/A ElliottGone4/n elliottLetter3/x elliottLetter4 true: "null" #!String
    3912128/e 3912127/A ElliottGone3/n elliottLetter2/x elliottLetter3 true: "null" #!String
    3912127/e 3912126/A ElliottGone2/n elliottLetter1/x elliottLetter2 true: "null" #!String
    3912126/e 3912125/A ElliottGone1/x elliottLetter1 true: "null" #!String
However, we're not sure of how to make the whole "spouse goes away for a week" thing. We can quite understand the preconditions, but not the way to make the character not appear during the time they're "away". We're quite new on this, and it's the first time we do modding on Stardew Valley, so we're not very aware of how things work.
Thank you all in advance
Elliott being away is handled by setting him to invisible with the scheduling code. You may be able to get away with using the event end option that sets an npc invisible and having it fire off in the farmhouse, I guess.
 
Top