Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------------
- |dunk|2pt | 3pt | 3pt |2pt | dunk |
- ------------------------------------
- In each square :
- Shoot ,
- Dribble (gives you a bonus to advance if succeed temp +10 in avoid stealing)),
- Aim (like dribble but
- Advance/Forward,
- pass?? (need to impelemnt secind player for each team)
- defend
- block
- When att player select to shoot and def pl select block the do the block check
- When att player select to dribble and def pl select steal the do the steal check
- When att player select to advance and def pl select defence the do the defence check
- If nothing is selected the opponent wins
- dribble :
- Player Stats:
- steal=block:20
- shoot: 50
- fail_chance=10 (this is substaracted in each steal/shoot/dribble attempt)
- skill2pt=
- skill3pt=Shoot*(40/100)
- Team Skill : 5 games all stats are +10 in each round
- funtion get_current_round(){
- return current_round;
- }
- function next_round_stats(){
- round=get_current_round();
- }
- function dice(num)
- {
- return int(rnd*num);
- }
- function dribble(def_block){
- success=0;
- round=get_current_round();
- check=dice(100)*def_block-dice(fail_chance);
- if (check>20) success=1;
- return success;
- }
- function shoot(att_shoot,def_block)
- {
- success=0;
- check=dice(100)*att_shoot-dice(100)*def_block-dice(fail_chance);
- if (check>50) success=1;
- return success;
- }
- function player_score_attempt(att_shoot,def_block,points=2)
- {
- return 2*shoot(att_shoot,def_block); //
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement