[DECORATE] How Can I Make Monster Have Second Attack In PK3 File

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
NHG(N_HuyGamingVN)
New User
Posts: 17
Joined: Sat Jul 14, 2018 5:55 am
Clan: NewClanZ
Clan Tag: NewClanZS

[DECORATE] How Can I Make Monster Have Second Attack In PK3 File

#1

Post by NHG(N_HuyGamingVN) » Tue May 21, 2019 11:16 am

:igor: Can someone helps me make the Monster have second attack.




Thank You,...

User avatar
Empyre
Zandrone
Posts: 1316
Joined: Sun Jul 08, 2012 6:41 am
Location: Garland, TX, USA

[DECORATE] Re: How Can I Make Monster Have Second Attack In PK3 File

#2

Post by Empyre » Tue May 21, 2019 8:36 pm

Do something like this:

Code: Select all

Missile:
 TNT1 A 0 A_Jump(64,"SecondAttack")
  <code for first attack>
  Goto See
SecondAttack:
  <code for second attack>
  Goto See
The 64 in the A_Jump is the chance out of 255 that it will jump, so 64 means 64/255 or 1/4 or 25% chance of jumping.
"For the world is hollow, and I have touched the sky."

Post Reply