Growlith1223 Posted January 8, 2012 Author Share Posted January 8, 2012 Hey so i was wondering…Is there a way to make a chancing code so for example:in a pmd game, Recruit rate is +34which would mean you have a chance out of 34 to recruit it..Is there a way to do that and if so, could someone tell me how?I know i ask too many questions >.<I also don't know a lot about coding DX Link to comment Share on other sites More sharing options...
Robin Posted January 8, 2012 Share Posted January 8, 2012 @Growlith1223:> in a pmd game, Recruit rate is +34> which would mean you have a chance out of 34 to recruit it..![](http://i.imgur.com/rpXAp.jpg) Link to comment Share on other sites More sharing options...
gdog12356 Posted January 8, 2012 Share Posted January 8, 2012 @Growlith1223:> Hey so i was wondering…Is there a way to make a chancing code so for example:> in a pmd game, Recruit rate is +34> which would mean you have a chance out of 34 to recruit it..> Is there a way to do that and if so, could someone tell me how?> I know i ask too many questions >.<> I also don't know a lot about coding DXyes, for a recruitment code you will need to think of how this engine works, and also how pokemon games work. Now when a pokemon dies, it will see if you can recruit it. So you will want to look for the code in the npc death. And you will want to call a sub you will have to create to manage the actual recruitment. As for the percentile chance, you can do a random select of cases. like case1=exit sub case2= exit sub case 3= call recruitment code… so then its a 1/3 chance. As for the recruitment code you will have to experiment with that. Link to comment Share on other sites More sharing options...
Growlith1223 Posted January 8, 2012 Author Share Posted January 8, 2012 I still don't understand XDI am new to the whole coding thing >.< Link to comment Share on other sites More sharing options...
gdog12356 Posted January 8, 2012 Share Posted January 8, 2012 @Growlith1223:> I am new to the whole coding thing >.<Then you shouldn't just right into coding things if you dont understand them. Take a look at components of the engine and see how it works. Then pick pieces from certain things and put them together to try to create what you want. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now