- Joined
- Feb 20, 2020
- Messages
- 220
Hello guys, i need a pokemon like catch system.
I know how to make it in gui, but for multiplayer it leaks a little and can be a little laggy.
if someone knows a way to make this for me without leaks of laggy i will be very thankful!
i need a trigger that works like the following:
the player have 9 basic skills in a "spellbook"
1 - throw pokeball
2 - return monster
3 - release monster
4 - summon monster 1
5 - summon monster 2
6 - summon monster 3
7 - summon monster 4
8 - summon monster 5
9 - summon monster 6
the catch system i need that works like this :
the player uses the skill "throw pokeball"
- if he have pokeballs in his inventory (pokeballs stacks)
- if the monster is from "neutral hostile" team
- if he still not have 6 monsters
get a chance of capture
chance is determined by:
- level
- type of monster (list of monster)
- health remaining of the monster
- kind of pokeball used (normal, great, ultra, master)
- food gave to the monster (if the player uses a fruit in the pokemon, inscreases his chance to capture)
if he capture the monster
than set it in the player number region
than set it in a array of player monsters to use the "summon monster 1-6" skill
player uses one of the summon skill
if there is already a summoned monster cancel the summon
if not, summon the monster in the position of the trainer and set monsters summoned = 1
so he cant summon another monster
if he uses release monster, delete the selected monster and remove it from the array
player uses return monster,
return the summoned monster
if there is no monster, nothing happens.
I know how to make it in gui, but for multiplayer it leaks a little and can be a little laggy.
if someone knows a way to make this for me without leaks of laggy i will be very thankful!
i need a trigger that works like the following:
the player have 9 basic skills in a "spellbook"
1 - throw pokeball
2 - return monster
3 - release monster
4 - summon monster 1
5 - summon monster 2
6 - summon monster 3
7 - summon monster 4
8 - summon monster 5
9 - summon monster 6
the catch system i need that works like this :
the player uses the skill "throw pokeball"
- if he have pokeballs in his inventory (pokeballs stacks)
- if the monster is from "neutral hostile" team
- if he still not have 6 monsters
get a chance of capture
chance is determined by:
- level
- type of monster (list of monster)
- health remaining of the monster
- kind of pokeball used (normal, great, ultra, master)
- food gave to the monster (if the player uses a fruit in the pokemon, inscreases his chance to capture)
if he capture the monster
than set it in the player number region
than set it in a array of player monsters to use the "summon monster 1-6" skill
player uses one of the summon skill
if there is already a summoned monster cancel the summon
if not, summon the monster in the position of the trainer and set monsters summoned = 1
so he cant summon another monster
if he uses release monster, delete the selected monster and remove it from the array
player uses return monster,
return the summoned monster
if there is no monster, nothing happens.