- Oct 30, 2019
- 77
- 30
By the way, what software do you use to edit mod? I use Notepad + +, but there are often typographical errors
I use Notepad++ ,but I can't write if endif while endwhile these statements by myself, and often make mistakes. I can only copy the existing statements to replace themI use Notepad++, what do you mean with "typographical"? Syntax errors in your code or in strings you encounter?
The iteration cannot be done in the WHO: clause. Leave it empty and add the while code to the main scene:
tmpActor = getPerson()
while tmpActor.isValid()
if tmpActor.isMale() && tmpActor.isNeighbour()
// Do something
endif
tmpActor = getPerson()
endwhile
Oh yeah, that would turn things around for sure. Frankly, I was thinking about a copy-paste-ish kinda thing with a bit of tweaking to accommodate the differences. What I mean by that is copying chunks of code and replacing age interval and dialogue for it to work with sugar-daddies/sugar-mommies. For instance, you could have the same options while dating sugar-babes and sugar-parents but the former would be you picking the activities and the latter would be them asking you what would you like to do. But sure, some shift in who takes the lead might be interesting. For that, I was thinking of using the same approach as the base game where you have all the dating options, and when the sugar-parent calls, it just picks a random one from your mod, and from that point on it could go like a normal date in SugarDaddy++, except maybe they will initiate sexy time. I'm not sure if what I've said is really easier, but personally, I'd be fine with any approach you seem fit.If by that you mean someone paying you for services, it's possible. But it would be a whole new mod, and thats out of the question till I finnish a couple of current mods. Plus I'm not sure how it would work, with you paying, you decide what to do and where to go. If there paying, they would decide!
If you mean adding older people into the mix that you can pay for services, that could be done by you advertising the age required and a few checks to change responses.
And yes I'm all good, well apart from my darkside thats all bad. But thanks for asking!
I've used it If Actor0.isMale() && !Player.isInterestedIn(Actor0) to exclude female Actor , but in test always give me a female roleOr can you help me write this code?
WHO: Actor0 = getSpecific(Neighbour); Actor1 = Actor0.getRelatedPerson(ParentChild); If Actor0.isMale() && Actor0.isInterestedIn(Actor1) && Player.isInterestedIn(Actor1) && !Player.isInterestedIn(Actor0) && Actor1:incest > 75 && Actor0:incest > 75 && Actor1:age > Actor0:age
I write this code to extract a male neighbor and his mother, but often give me a female neighbor and her daughter LOLI've used it If Actor0.isMale() && !Player.isInterestedIn(Actor0) to exclude female Actor , but in test always give me a female role
Sorry, I can't log in discord,I am Chinesevampire899: I suggest you get yourself a discord account (if you don't have one yet) and visit LifePlay's Discord. There is a modding channel and you can paste your code / files without loosing any formatting.
AND: we keep the forum clear
View attachment blackmail_neighbours_family_incest.7z OK,but i write use Chinesevampire899
or just attach your mod file to a post!
I don't quite understand what you mean. First of all, the "who:" is wrong as expected. What's the error? Is it a conditional error or a format error? Second, the problem in your figure is just one more " is a manual error. What are the other format problemsUh....
The "WHO:" is wrong as expected.
And there are plenty of other problems like identation and wrong string masking:
View attachment 530899
First get your NP++ set up correctly. Install the Syntax highlighter and enable white space display!
I already told you how to acchieve what you want. Read again please.
Tabs (the orange arrows) are not supported and will cause the conditional execution to fail. You need spaces (represented by orange dots)....Is it a conditional error or a format error? Second, the problem in your figure is just one more " is a manual error. What are the other format problems
I know where the format error is. I replaced all the auto carriage return positioning with spaces. Now we can solve the problem of extracting conditions. What is the error of extracting conditions View attachment blackmail_neighbours_family_incest.7zUh....
The "WHO:" is wrong as expected.
And there are plenty of other problems like identation and wrong string masking:
View attachment 530899
First get your NP++ set up correctly. Install the Syntax highlighter and enable white space display!
I already told you how to acchieve what you want. Read again please.
What I need to position is a male neighbor with a parent-child relationship, and it's a mother-child relationship rather than a father-child relationship.Tabs (the orange arrows) are not supported and will cause the conditional execution to fail. You need spaces (represented by orange dots).
2nd: I am not sure (and therefore would not do it this way) that the IF condition in the WHO: clause will do anything.
That is why I suggested you leave WHO: empty and iterate through all your contacts to find a male neighbour.
This is how it is usually done.