- 10
- Posts
- 9
- Years
- Seen Mar 14, 2025
I'm still super new to Ruby (I know python kinda well) and I'd like to set it up so breeding passes down contest stats like IVs and I'm unsure of what all I need to address. I would love some directions on anything I might need to change to make sure this works. Specifically, what parts of the scripts I might not be able to find looking for codewords like ivinherit. Hard to find every instance when you have to click through a bunch of individual scripts.
Edit: After realizing just how my code would not work, I've instead replaced that all with this code in Overworld_Daycare
My main worry is if .cvspassed[num] will actually go to egg.cool and parent.cool, etc.?
Edit: After realizing just how my code would not work, I've instead replaced that all with this code in Overworld_Daycare
Code:
# Inheriting contest Values
cvspassed = 3
conteststats = [cool,beauty,tough,cute,smart]
contestvalue = [0,1,2,3,4]
contestvalue = contestvalue.sort{rand()-0.5}
cvroll = contestvalue[0..(cvspassed - 1)]
cvroll.each do |stat|
cvspassed = conteststats[stat]
r = rand(2)
num = 0
2.times do
parent = [mother,father][r]
egg.cvspassed[num] = parent.cvspassed[num]
num += 1
end
My main worry is if .cvspassed[num] will actually go to egg.cool and parent.cool, etc.?
Last edited: