I am trying to make a boss that looks like the Narada from Star Trek. It has lasers, torpedos and a EMp as weapons.
Does anyone know how to code a boss so that it does those attacks randomly?
Also, can anyone give me the costumes for these weapons?
Offline
repeat until <(boss health) = (0)> wait (pick random (0.5) to (2)) secs set [attack v] to (pick random (1) to (3)) if <(attack) = (1)> broadcast [emp v] else if <(attack) = (2)> broadcast [laser v] else broadcast [torpedos v] end endNote: This gives each option an equal chance of occurring. If you want some attacks to be more common than others then you can create a percentage method.
Last edited by Prestige (2012-09-02 04:33:11)
"Offline