Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Random earthquake effect when units move.
- #
- [event]
- name=moveto
- first_time_only=no
- [lua]
- code= <<
- local rumble_seed = safe_random("1..100")
- if rumble_seed % 11 == 0 then -- 9.09% chance
- wesnoth.wml_actions.sound({ name = "cave-in.ogg,cave-in.ogg,rumble.ogg" })
- end
- if rumble_seed % 13 == 0 then -- 7.69% chance
- wesnoth.wml_actions.quake({ sound = "cave-in.ogg" })
- end
- if rumble_seed % 29 == 0 then -- 3.44% chance
- wesnoth.wml_actions.quake({ sound = "rumble.ogg" })
- end
- >>
- [/lua]
- [allow_undo][/allow_undo]
- [/event]
Advertisement
Add Comment
Please, Sign In to add comment