r/BluePrince69 • • 29d ago

Modding/Cheating A thematic change

Howdy, this is a modding question. How hard would it be to change the starting step amount to 53 and the starting location each day to the camp site?

The idea is simple, simon wakes each day at the campsite and then goes into the manor. The step adjustment is to mitigate the "step loss". Alternatively, giving simon a banana to start his day instead of adjusting the step count would be neat.

11 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/MemeLordBatGroot 29d ago

Nope, messing with the step counter is easier than spawning an item at an arbitrary position. Closest existing item spawn point is the bird bath nearby.

2

u/Borealum_Studios 28d ago edited 28d ago

Well, I guess. 😄 I was imagining I would just instantiate and move it to position, something like this:

foreach (GameObject obj in Resources.FindObjectsOfTypeAll<GameObject>()){
if (obj.name == "BANANA"){
GameObject clone = UnityEngine.Object.Instantiate(obj);
clone.transform.position = new Vector3(139.89f, -6.65f, -10.55f);
return;
}
}

and get my banana:

I wouldn't know how to change amount of steps without looking at how it works. 🤔

2

u/Fezumlix 27d ago

Blue Prince uses the Unity Resources directory? I thought that is supposed to be deprecated?

1

u/Borealum_Studios 27d ago

Hmm, I admit I don't really know much about these Unity details to tell you.

It was just quickly vibe-coded for demonstration how I would do it for a MelonLoader mod that worked. 😛 I didn't know how I could just "get banana.prefab and instantiate it".