Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Recruitment code.


Growlith1223
 Share

Recommended Posts

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 DX
Link to comment
Share on other sites

@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 DX

yes, 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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...