- 67
- Posts
- 4
- Years
- He/Him
- Seen Nov 16, 2023
I keep forgetting to put this in the title but this is for essentials 17.2
ivinherit=PBStats::HP,PBStats::SPEED if isConst?(parent.item,PBItems,:STAMINAAUGMENT)
ivinherit=PBStats::ATTACK,PBStats::SPATK if isConst?(parent.item,PBItems,:MIGHTYAUGMENT)
ivinherit=PBStats::DEFENSE,PBStats::SPDEF if isConst?(parent.item,PBItems,:IMMUNITYAUGMENT)
ivinherit=PBStats::ATTACK,PBStats::DEFENSE,PBStats::SPATK,PBStats::SPDEF if isConst?(parent.item,PBItems,:POWERAUGMENT)
So I put these right below the power items and their function is to pass 2 specific ivs down however when I use this in combination with another augment for example two pokemon with 2 max ivs one in spatk and atk the other in defense and special defense and I make them hold the corresponding items in breeding I get this error message
This is my line 338 btw
ivinherit=PBStats::HP,PBStats::SPEED if isConst?(parent.item,PBItems,:STAMINAAUGMENT)
ivinherit=PBStats::ATTACK,PBStats::SPATK if isConst?(parent.item,PBItems,:MIGHTYAUGMENT)
ivinherit=PBStats::DEFENSE,PBStats::SPDEF if isConst?(parent.item,PBItems,:IMMUNITYAUGMENT)
ivinherit=PBStats::ATTACK,PBStats::DEFENSE,PBStats::SPATK,PBStats::SPDEF if isConst?(parent.item,PBItems,:POWERAUGMENT)
So I put these right below the power items and their function is to pass 2 specific ivs down however when I use this in combination with another augment for example two pokemon with 2 max ivs one in spatk and atk the other in defense and special defense and I make them hold the corresponding items in breeding I get this error message
---------------------------
Error
---------------------------
Script 'Interpreter' line 276: RuntimeError occurred.
Script error within event 10 (coords 19,10), map 21 (PUA Airship):
Exception: TypeError
Message: PField_DayCare:338:in `[]'cannot convert Array into Integer
***Full script:
pbDayCareGenerateEgg
Interpreter:243:in `pbExecuteScript'
PField_DayCare:338:in `pbDayCareGenerateEgg'
PField_DayCare:335:in `each'
PField_DayCare:335:in `pbDayCareGenerateEgg'
(eval):1:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
---------------------------
OK
---------------------------
This is my line 338 btw
ivs[ivinherit[r]]=parent.iv[ivinherit[r]]
Last edited: