Create chance cards for new career
Hi Evereybody !
First of all, I would like to apologize for my bad english ^^ I am from Belgium ... I created a new career with "Create a career Beta" created by Neia (If you see that, THANK YOU) . I tried it in my game and that works perfectly ! But that's too simple ... I would like to add a lot of chance cards. But I don't know how to do that and which program we can use to do that. If somebody can kindly explain me, I would be very happy ! I will post my new mod here after that. So you can test it in your game and you can leave me any comments you want |
Moved to modding discussions
In case you want people to give feedback on your download (which includes testing), please take a look at our Creator Feedback forums: http://www.modthesims.info/fd.php?f=473 |
Thanks Lyralei !
|
I'm pretty sure there's some individuals who have made chance cards for their own careers, so hopefully they may yet speak up and fill in more details, but this should get you started. Feel free to ask any further questions as well.
You'll want an XML extractor program (e.g. XML Extractor, S4PE which you should already have, and a program to edit XML text files such as Notepad++ (a generic but powerful text file editor) or firstobject XML Editor (specifically for XML files and can help make XML friendlier to edit). You'll want to learn the basics of creating new XML resources, including how to number the "Instance ID" for them using a hash generator. You'll also want to learn how to create STBL entries to display text in the game. There's several good tutorials listed on SimsWiki. There's four main parts to career chance cards:
|
Thanks Scumbumbo ! That's very kind of you for explaining me all of that. Like you said: That's not really rocket science. But I have one question, where do you find "interactions.utils.adventure"?
|
Quote: Originally posted by Laura2112
That's a module tuning file, so you'll find it in the "tun" subfolder assuming you're using the XML Extractor I wrote. The filename would be S4_03B33DDF_00000000_C11899C371C041F5.xml |
Hi scumbumbo! I'm doing a career with several tracks, and I want the chance cards to be unique to each. Tons of work, I know. But, I'm wondering where in the xml does it specify the trigger for a chance card? Do they just randomly appear or in order? I've looked at interactions.utils.adventure, and I'm going through the tuning on several chance cards, and their behaviour is not obvious to me. For example, if one career level is about programming, I don't want a fitness chance card to come up, but it would be helpful in another level in the same career track. I think I'm asking how to specify an event trigger to a chance card, or how to determine when an adventure moment occurs.
|
Perhaps this is what I'm looking for. In the following xml, is it implying that when a sims's logic skill reaches level 5 and their mood is focused, this chance card will appear?
<?xml version="1.0" encoding="utf-8"?> <I c="AdventureMoment" i="snippet" m="snippets" n="career_Business_ChanceCard_9" s="106429"> <U n="value"> <L n="_finish_actions"> <U> <L n="action_results"> <U> <L n="loot_actions"> <T>106752<!--loot_JobPerformance_Gain_Medium_Business--></T> </L> <V n="notification" t="enabled"> <V n="enabled" t="reference"> <T n="reference">107672<!--notification_ChanceCard_Business_9A_Success--></T> </V> </V> <L n="weight_modifiers"> <U> <V n="test" t="skill_test"> <U n="skill_test"> <T n="skill">16706<!--statistic_Skill_AdultMajor_Logic--></T> <V n="skill_range" t="interval"> <U n="interval"> <U n="skill_interval"> <T n="lower_bound">5</T> </U> </U> </V> </U> </V> <T n="weight_multiplier">2</T> </U> <U> <V n="test" t="mood"> <U n="mood"> <T n="mood">14639<!--Mood_Focused--></T> </U> </V> <T n="weight_multiplier">1.5</T> </U> </L> </U> |
Also, since there's only one si in each package, how do I determine which chance card belongs to which branch of the career? I'm going to keep on looking at the different chance cards for different existing careers within the game with different branches to see if I can figure that out.
|
Short answer - No
Long answer - forthcoming |
Quote: Originally posted by scumbumbo
Thanks |
Just to clarify... forthcoming means it will take a bit. I think it will be worthwhile though, I'm creating a fairly stupid adventure example. While it's not all that complex I am trying to demonstrate some of the things you're specifically asking about, and so it does take some time to get everything working right. The XML will be commented, and it will include a script to demonstrate adding the appropriate card names without having to override the interactions.utils.adventure module tuning (which would be something that could easily cause mod conflicts to do so via XML). I'll probably write up a bit of an explanation of how it all fits together as well.
Might finish it up tomorrow if I get the time. For now I'm past the phase of getting things working and just to the fitting everything all together stage. |
Quote: Originally posted by scumbumbo
That's wonderful news! And now I see why this has me so stumped, scripts. I'm so new to them. I'm waiting patiently and appreciate all your hard work. |
Just a quick note that I have NOT forgotten about this. My silly little example mod is all coded/working and the document to explain just what everything in it all means was largely done -- but real life has been hectic of late and it kind of got pushed into the "maybe I can work on that tomorrow" file, repeatedly. I'm honestly not sure when I'll get around to finishing it all up, but hopefully by the end of next week.
|
Quote: Originally posted by scumbumbo
That's awesome! I've been making custom careers as well, but am very new to coding so I'm trying to learn from scratch and have zero clue what I'm doing lol I can't wait to see yours! And maybe get some help? haha |
Quote: Originally posted by scumbumbo
Your work is more than appreciated and I have no problem waiting! |
So this is where i am at. I am using sims 4 studio to do this. Now what do i type or where do i type it. Im so lost.
<E n="key">Career_Irresponsible_ChanceCard_01</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166508</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChanceCard_02</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166509</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChanceCard_03</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166511</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChanceCard_04</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166512</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChanceCard_05</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166513</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChanceCard_06</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166514</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChanceCard_07</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166515</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChanceCard_08</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166517</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChanceCard_09</E> <U n="value"> <V n="aventure_moment" t="reference"> <T n="reference">166518</T> </V> </U> </U> <U> <E n="key">Career_Irresponsible_ChooseCard</E> <U n="value"> <V n="aventure_moment" t="literal"> <U n="literal"> <L n="_finish_actions"> <U> <L n="action_results"> <U> <L n="next_moments"> |
Quote: Originally posted by Kitsunechan'w'
Hi, we discussed this yesterday on Deaderpool's Discord, but for the sake of those who didn't see that - adding chance cards to a career is a fairly time consuming and detailed process. It's not exactly difficult, just... well... detailed The section you are looking at is used for the responsible and irresponsible traits in GP05 and they probably should not be changed. They are the same for every career in the game. The actual "per-career" chance card code is not present in a career created by the Create-A-Career tool. Simmiller gives a fairly good overview of what would be involved in another thread, http://www.modthesims.info/showthread.php?t=626110. |
OK, Rex here. I'll share some of my experience on the chance cards:
1.First of all, all the chance cards are defined in the interaction file 'si_Career_XXX'; Also, at what level and in which branch of the career will the chance card shows up is also defined in this interaction. One career only comes with one career interaction. All branches of a career share the same interaction. 2. The chance cards themselves, what you posted above is how a skill will influence the results. Basically, you write texts and place them into the file , and then you write loot action files for each result. Some choice has only one result, some choice have two or more. Skills, mood, and stuffs will influence the weight of a result, which is the 'weight modifier' you posted above. 3.IF you're making teen careers and want to influence character values or stuffs, that's a whole new story. I think it's a bit different but it's not necessary anyway. |
Quote: Originally posted by konansock
I have done all of these things, and my custom chance cards are never triggered. Very frustrating! How do you test a chance card? Is there a way to FORCE a chance card to appear for a particular Sim in a particular career, through some debug option or cheat code, and if so, how? If this can be done, I would appreciate step-by-step instructions. Karen |
Quote: Originally posted by karenh3
Well, I noticed that you started this project last year, and the fact is, the structure of the 'si_career_XXX' has been updated since the Get Famous patch. So it's perfectly normal if you did not update your old structure to the new ones. I had to update my mods to make those chance cards show up as well. If you're sure you have updated the structure of the chance cards, I always just test the chance cards one by one, by simply pasting only one chance cards in the file and then go in the game. I suggest make a save where Sims were just about to go to work, that will shorten the time for testing on a large scale. Also change the working schedule when testing also works, I always make my Sims go to work every day when testing LOL. Chance cards shows up normally once or twice a week, so I strongly suggest make a Sim join your career, and save an hour before he goes to work for the first time, and just test with this save file. I hope to see your careers soon! |
Does anyone have a link to a career with chance cards that I can look at? I cant seem to find one with chance cards so I can use it as a template to create my own.
|
All times are GMT +1. The time now is 12:57 PM. |
Powered by: vBulletin Version 3.0.14 · Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.