Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Chance of battle encounter
- if (global.DEBUG == false)&&(stop == false)
- &&(collide_x == false)&&(collide_y == false)
- if (keyboard_check(vk_up))
- ||(keyboard_check(vk_down))
- ||(keyboard_check(vk_left))
- ||(keyboard_check(vk_right))
- if (image_index == 1)
- {
- if (room == room_surfaceview)
- {
- randomize();
- battle_encounter_chance = irandom_range(global.event_encounter_min, 30);
- if (battle_encounter_chance == 30)
- &&(global.event_encounter_min > 0)
- instance_create(x, y, obj_battle_start);
- global.event_encounter_min += 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement