Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
DynamiteKaitorn

Random Attacks

Question

I want to create a monster that shoots out a different attack differently. Is this possible inside DECORATE or will I need ZScript?

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Easy, in the missile create a a_jump with the name of the attacks, here one of my monsters

 

between further down is the a_jump means that would be less probable to do being the most common here the IMP and the least common the Baron

 

        Missile:
                TNT1 A 0 A_Jump(128,"Imp")
                TNT1 A 0 A_Jump(128,"Boun", "Seeker")
                TNT1 A 0 A_Jump(128,"Baron")
                Goto See
        Imp:
                IMP3 A 20 Bright A_FaceTarget
                IMP3 AB 2 Bright 
                TROO G 2 Bright A_CustomMissile("DoomImpBall", 40, 0, random(-3, 3), 0)
                TROO G 1 Bright A_SpidRefire
                Goto Imp+1
        Boun:
                IMP3 A 8 A_FaceTarget
                IMP3 B 8 A_FaceTarget
                TROO G 1 BRIGHT A_CustomMissile("BouncingBall", 40, 0, random(-16, 16), 0)
                Goto See
        Baron:
                IMP3 A 8 A_FaceTarget
               IMP3 B 8 A_FaceTarget
               TROO G 8 A_BruisAttack
                Goto See
        Seeker:
                IMP3 A 8 A_FaceTarget
                IMP3 B 8 A_FaceTarget
                TROO GGG 0 BRIGHT A_CustomMissile("SoulHarvesterBall", 40, 0, random(-16, 16), 0)
                TROO G 8
                Goto See

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×