Want to make a mod bassed on Weed-Biz

To discuss about modding LifePlay game. Best place to ask for help or to share some tips and tricks for coding.
Post Reply
User avatar
Vamos69
Modder
Reactions: 0
Posts: 7
Joined: Sun Apr 10, 2022 9:19 pm

Post by Vamos69 »

I just wanted to say thank you for your mods, I like them!

I started to modify rcbc_pregnancy mod, but I don't understand some parts of the modding guide so my modifications doesn't work.
In his mod, there are ()
(Actor:attractiontoplayer + Actor:rapportwithplayer) > 60
Not supposed to be brackets likes
[Actor:attractiontoplayer + Actor:rapportwithplayer] > 60
Do we use () or [] to group conditions ?

I want to use your Web-Biz mod to make a similar mod but related to another drug.
What advice can you give me before I start?

I asked on F95 if I could use the mods of others to make mods. I was told yes!
They also told me that you added mods from other modders in your Remake. Which ones are they, because I couldn't find them!

I think I would make a compatible version of the mods I like for the Remake because there are plenty that are not in the list of compatible mods and I like the Remake better.
Can I submit my mods to the forums?
Top
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

I'm glad you like my mods! :)
Vamos69 wrote:Do we use () or [] to group conditions ?
Only [], look here: viewtopic.php?t=30
"To connect conditions into a set of conditions, '&&' is used for 'and' and '||' is used for 'or'. The square brackets [] are used to group conditions"

If you still have problem, just share your file via pastebin https://pastebin.com, you don't need to create an account and it's free.



Vamos69 wrote:I want to use your Web-Biz mod to make a similar mod but related to another drug.
What advice can you give me before I start?
1- Nice idea, Weed-Biz have been created based on PornEmpire from NickNo so, you can check that one too!
2- Use different name for the every variables/Global I created ex: rk_PlayerOfficeLocationSize change it for v69_PlayerOfficeLocationSize
So if someone installs Weed-Biz and your mod, they will not have any conflict.
3- Use different name for every files. Same thing here instead of using rk_wd_scene_manage_runner.lpscene, choose this v69_scene_manage_runner.lpscene
I always put my initial in the beginning for everything I add (lpmod, lpaction, lpscene, variable, global,...) in the game.
4- Try to use different texts to avoid redundancy.
5 - Also visit this wiki (will be moved here soon) https://raiderknight-mods.fandom.com/wi ... f_LifePlay
I guess that's it!



Vamos69 wrote:They also told me that you added mods from other modders in your Remake. Which ones are they, because I couldn't find them!
I don't know what mods you are talking about, but no!
I only added some scenes from Ravenger660 because he was submitting scenes to me for the Remake but it turned out that he redistributed one of my mods without my permission so I removed all of its content (lpscenes) from the Remake. So no content from other active modders.
Don't go on F95 ;), the community on Discord is way better!



Vamos69 wrote:Can I submit my mods to the forums?
If they are compatible with the Remake, sure, anytime.
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
User avatar
Vamos69
Modder
Reactions: 0
Posts: 7
Joined: Sun Apr 10, 2022 9:19 pm

Post by Vamos69 »

Thanks for your help!

About () or []
Someone on F95 already told me the same as you.
I will try to finish and understand the rcbc_pregnancy mod first and then I will try my other idea.

And, how do I make my mods compatible with the Remake?
Also rcbc_pregnancy it's not a unique mod, so I guess I can't submit this mod to the forum?
Top
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

Vamos69 wrote:And, how do I make my mods compatible with the Remake?
Add this after SceneStart()

Code: Select all

Hunger = Player.getActorVar(rk_VB_Hunger)
        HungerEnable = rk_VB_EnableHunger.getGlobal()
        UrgeToPeeEnable = rk_VB_UrgeToPeeEnable.getGlobal()
        UrgeToPee = Player.getActorVar(rk_VB_UrgeToPee)
        
Look at this file for examples :gym_reward_cms.lpscene.


For hunger:
For each time you use energy your hunger go up.
In fact, inside the code it's the opposite, because hunger start at 100.
If you decide to have sex

Code: Select all

 Sex(Actor, Player)
If HungerEnable > 0
    Player.modifyActorVar(rk_VB_Hunger, -2)
EndIf
My hunger stat is now at 98.

For eating

Code: Select all

....
If HungerEnable > 0
    Player.modifyActorVar(rk_VB_Hunger, 1)
EndIf
My hunger stat is now at 99.


For Pee:
Not really for watersport but can be use for...
Pee stats it's the opposite as hunger, it start at 0.

Code: Select all

I'm drinking alcohol...
....
If UrgeToPeeEnable > 0
    Player.modifyActorVar(rk_VB_UrgeToPee, 1)
EndIf
On the Raider Knight Wiki, check this section: https://raiderknight-mods.fandom.com/wi ... _LP_Remake to get more variables that I added to the Remake.
If you need more help, don't hesitate!

Vamos69 wrote:Also rcbc_pregnancy it's not a unique mod, so I guess I can't submit this mod to the forum?
If the creator of this mod would have already posted his mod on the forum I would have told you no, but he didn't so yes you can submit it on the forum.
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
User avatar
Vamos69
Modder
Reactions: 0
Posts: 7
Joined: Sun Apr 10, 2022 9:19 pm

Post by Vamos69 »

To be honest, I'm still trying to figure out how to code. I've made some progress but I've changed my mind about making a mod similar to WeedBiz. I'm going to start with a small mod, then I'll do the larger one.
Anyway, I will follow what you showed me to make my mods compatible with the Remake.
I will post my mods here when done!
Thanks!
Top
Post Reply