- Site Map >
- Modding and Creation >
- Sims 4 Creation >
- Modding Discussion >
- Need help modding
- Site Map >
- Modding and Creation >
- Sims 4 Creation >
- Modding Discussion >
- Need help modding
Replies: 6 (Who?), Viewed: 3105 times.
#1
9th Feb 2015 at 7:53 PM
Last edited by 2008knight : 10th Feb 2015 at 1:20 AM.
Posts: 4
Need help modding
This is my first post here, so I'm sorry if the format of the post is not correct or anything like that.I was trying to learn how are mods made un XML, so I've been analyzing some already existing mods, but I have one doubt. Is there any way that during an interaction the needs filling behaves differently according to the porcentage of the same (or other) needs?
Let's say for example: The interaction of sleeping increases the energy indicator and it could be easily possible to modify it to make the Hygene go down in the meanwhile, but my question is, is there a way to make it stop going down once it reaches half of the indicator mantaining the sleeping interaction?
Or make the Hygene start going up when the Energy is above half the indicator, but make it decay normally while it is under the half?
(I'm sorry if I didn't make myself clear, english is not my main language)
Advertisement
#2
10th Feb 2015 at 6:01 AM
Posts: 2,671
Thanks: 62729 in 190 Posts
Quote: Originally posted by 2008knight
(I'm sorry if I didn't make myself clear, english is not my main language) |
I think you described what effect you want well enough, but unfortunately I don't think there's any way to accomplish that. I'm pretty sure you could make an interaction that changes the rate of a statistic's change by testing a different one at the start of an interaction, but not change rates midway through the interaction. But then again, it may be possible and I just don't know how it would be done!
The only possibility I can think of would involve multiple interactions and it probably wouldn't work right, at least not without a lot of effort... Basically, make the long interaction work in short bursts and have the interaction push the interaction to run again if the original interaction exits successfully. Kind of like a loop. Could be tough though as you want it to appear seamless, taking sleep for an example, unless it was tuned just right (would probably involve editing the animations) they would be getting in and out of bed all night each time the loop ran!
#3
10th Feb 2015 at 11:46 AM
Posts: 4
Quote: Originally posted by scumbumbo
I think you described what effect you want well enough, but unfortunately I don't think there's any way to accomplish that. I'm pretty sure you could make an interaction that changes the rate of a statistic's change by testing a different one at the start of an interaction, but not change rates midway through the interaction. But then again, it may be possible and I just don't know how it would be done! The only possibility I can think of would involve multiple interactions and it probably wouldn't work right, at least not without a lot of effort... Basically, make the long interaction work in short bursts and have the interaction push the interaction to run again if the original interaction exits successfully. Kind of like a loop. Could be tough though as you want it to appear seamless, taking sleep for an example, unless it was tuned just right (would probably involve editing the animations) they would be getting in and out of bed all night each time the loop ran! |
thanks for replying, it's kind of a letdown, but I can think of other ways to achieve my goal, thanks =)
#4
11th Feb 2015 at 9:13 PM
Posts: 4
so.. sorry for asking for so much assistence... but what I'm trying to do now is have two separate interactions, the regular sleep interaction and a new interaction that is enabled once certain requirements are accomplished. I created the new interaction based in the sleep interaction, and I got it to work, but the problem is that when I manage to get the new interaction working, the sleep interaction seems to break, more specifically, when I use the custom interaction it works perfectly, but when I use the sleep interaction the sims try to rout their way into the bed but show a blocked path "thought".
I want to understand why is this happening, since I haven't changed the sleep interaction itself and I added the new interaction to all beds super_affordances (yes, I didn't do it the python way)
anyone has any idea why is this happening or how to fix it?
(I'm not adding the code here because I haven't chewcked how to use the spoiler, I can do it if you ask me to)
I want to understand why is this happening, since I haven't changed the sleep interaction itself and I added the new interaction to all beds super_affordances (yes, I didn't do it the python way)
anyone has any idea why is this happening or how to fix it?
(I'm not adding the code here because I haven't chewcked how to use the spoiler, I can do it if you ask me to)
#5
12th Feb 2015 at 2:29 AM
Posts: 2,671
Thanks: 62729 in 190 Posts
Yeah, I'd pretty much have to see what you're trying to do there are so many problems that can cause an interaction to fail like that. You could put it in a spoiler, but it's usually easier to look at if you just attach a zip file with the package or the loose XML files to the message.
To put stuff in a spoiler, just put spoiler tags (in square brackets) around what you want in a spoiler. The code tags are nice for this as well.
To put stuff in a spoiler, just put spoiler tags (in square brackets) around what you want in a spoiler. The code tags are nice for this as well.
#6
12th Feb 2015 at 4:47 AM
Posts: 4
so the mod itself doesn't make sense.. but the principles I'm practicing seem to work, I'm sure I'm doing a lot of stuff wrong xD. if you could give me a push in the rigth general direction I would be really thankfull =)
I'm adjunting the interaction and two objects (beds)
I'm adjunting the interaction and two objects (beds)
Attached files:
Send.zip (5.9 KB, 7 downloads) - View custom content | ||
6043 02-12-2015 01:43 S4_B61DE6B4_00000000_0000000000008D83%%+_XML.xml 10006 02-12-2015 01:29 S4_E882D22F_00000000_433B63AC7DB91CFF%%+_XML.xml 9609 02-12-2015 01:43 S4_B61DE6B4_00000000_0000000000008D76%%+_XML.xml --------- ------- 25658 3 files |
#7
12th Feb 2015 at 6:35 AM
Posts: 2,671
Thanks: 62729 in 190 Posts
Took a look and I'm not quite sure what the actual effect of this would be. The sleep action still works fine for me, so not sure why you're seeing a problem with that. I'm not seeing what would actually cause the new interaction to occur - since it isn't autonomous it needs to either have a display_name to put on a pie menu or it needs to be pushed onto a sim by something else. Just putting it into the SAs for the object won't make the interaction occur.
Who Posted
|