Help ! Potential going Legendary with Miracle Cube only
Greetings ,
I've recently switched from normal cubing to a cubing NPC & my players seem to be getting legendary potential with miracle cube ( cubing via NPC ).
Is it a problem with my source's potential system or my NPC function / system fault ? Please help !
Thanks !
Re: Help ! Potential going Legendary with Miracle Cube only
Via npc = npc functionality is not gms alike.
Re: Help ! Potential going Legendary with Miracle Cube only
Soo meaning to say the way it's coded is wrong ? Or is it the way it's scripted.
Re: Help ! Potential going Legendary with Miracle Cube only
well why dont u post ur code so we can tell you
Re: Help ! Potential going Legendary with Miracle Cube only
Re: Help ! Potential going Legendary with Miracle Cube only
I'm playing around in Equip.java and I'd like to know ,
Quote:
public byte getState() { final int pots = potential1 + potential2 + potential3 + potential4 + potential5;
//if (potential1 >= 60000 || potential2 >= 60000 || potential3 >= 60000 || potential4 >= 60000 || potential5 >= 60000) {
// return 21; // special
//} else
if (potential1 >= 40000 || potential2 >= 40000 || potential3 >= 40000 || potential4 >= 40000 || potential5 >= 40000) {
return 20; // legendary
} else if (potential1 >= 30000 || potential2 >= 30000 || potential3 >= 30000 || potential4 >= 30000 || potential5 >= 30000) {
return 19; // unique
} else if (potential1 >= 20000 || potential2 >= 20000 || potential3 >= 20000 || potential4 >= 20000 || potential5 >= 20000) {
return 18; // epic
} else if (pots >= 1) {
return 17; // rare
} else if (pots < 0) {
return 1; // hidden
}
return 0;
}
Is this the function controlling the potential ? Like rare - legendary if so , how can I edit the chances ? does 40000 means 40% ?
Re: Help ! Potential going Legendary with Miracle Cube only
Re: Help ! Potential going Legendary with Miracle Cube only
Make it so when it sets the new potentials from cubing, if a miracle cube was used, rerandomize the potential if the potential id is over 40000. 40000 and above is a legendary potential so you have to make it not give that.
Re: Help ! Potential going Legendary with Miracle Cube only
Rip cubing out of this source. I fixed it 100%, but removed 5 line functionality. You would have to add the other two. I also made the chances back to how they were when there was only 3 lines, making it very uncommon.
https://drive.google.com/file/d/0B8G...ew?usp=sharing
Re: Help ! Potential going Legendary with Miracle Cube only
Re: Help ! Potential going Legendary with Miracle Cube only
I appreciate your source Syre , but is there anywhere I can implement the whole of your cubing system to this source I'm using at the moment ? I've spent sometime adding some functions of mine here soo I don't really wish to re-do them. If possible , can I know which parts must be implemented ?
Re: Help ! Potential going Legendary with Miracle Cube only
Quote:
Originally Posted by
TheJava
I appreciate your source Syre , but is there anywhere I can implement the whole of your cubing system to this source I'm using at the moment ? I've spent sometime adding some functions of mine here soo I don't really wish to re-do them. If possible , can I know which parts must be implemented ?
By looking at his source you could copy his potential system over to your source
Re: Help ! Potential going Legendary with Miracle Cube only
Yea I know , but which part do I copy over ? The functions under Equip.java ?
Re: Help ! Potential going Legendary with Miracle Cube only
Functions under equip.java for sure. I don't know if you need to copy the shit from the UseItem bit (I honestly can not remember this..InventoryHandler? idk...)but I would, just to be safe. Remember this is only 3 lines. I would have to go through and look at it again, but I can not do that as hospital wifi is absolutely horrible.