+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

+-Stats

Members
Total Members: 139
Latest: Lex Luthor
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 77
Total Topics: 43
Most Online Today: 3
Most Online Ever: 18134
(January 06, 2025, 07:01:17 am)
Users Online
Members: 0
Guests: 2
Total: 2

Author Topic: Weapon special: death sting (with example unit)  (Read 453 times)

  • Administrator
  • Full Member
  • *****
  • Posts: 155
  • I love anime and science!
    • View Profile
    • My blog

  • Total Badges: 24
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Fourth year Anniversary
Weapon special: death sting (with example unit)
« on: January 22, 2017, 09:48:02 pm »
Description: When this attack hits a poisoned unit, the unit is instantly killed. Death event are triggered.

Code: [Select]
#define WEAPON_SPECIAL_DEATH_STING
[dummy]
id=death_sting
name="death sting"
description="When this attack hits a poisoned unit, the unit is instantly killed. Death event are triggered."
[/dummy]

[/specials]
[/attack]

[event]
name=attacker hits
first_time_only=no

[filter_attack]
special=death_sting
[/filter_attack]

[filter_second]
[filter_wml]
[status]
poisoned=yes
[/status]
[/filter_wml]
[/filter_second]

[unstore_unit]
variable=second_unit
text="instant death"
{COLOR_HARM}
[/unstore_unit]

[kill]
x=$x2
y=$y2
animate=yes
fire_event=yes
[/kill]
[/event]

[event]
name=defender hits
first_time_only=no

[filter_second_attack]
special=death_sting
[/filter_second_attack]

[filter]
[filter_wml]
[status]
poisoned=yes
[/status]
[/filter_wml]
[/filter]

[unstore_unit]
variable=unit
text="instant death"
{COLOR_HARM}
[/unstore_unit]

[kill]
x=$x1
y=$y1
animate=yes
fire_event=yes
[/kill]
[/event]

[+attack]
[+specials]
#enddef

#define SPECIAL_NOTES_DEATH_STING
" This unit's death sting attack kills any poisoned units instantly."#enddef

Example unit

Code: [Select]
[unit_type]
[base_unit]
id=Giant Scorpion
[/base_unit]

# A stronger version of Giant Scorpion

id=Death Scorpion
name="Death Scorpion"
description="Death Scorpions are deadly creatures. They can attack with their venomnous sting or pincers, or by firing death ray from their tail."+{SPECIAL_NOTES}+{SPECIAL_NOTES_POISON}+{SPECIAL_NOTES_DEATH_STING}
level=4
experience=200
hitpoints=80
cost=60
alignment=chaotic
usage=mixed fighter

# Death Scorpions are immune to poison

[trait]
id=immune
availability=musthave
name="immune"
description="Immune to poison"

[effect]
apply_to=status
add=unpoisonable
[/effect]
[/trait]

# Death Scorpions are faster than normal scorpions

[movement_costs]
hills=1
mountains=2
cave=1
sand=1
frozen=1
[/movement_costs]

[defense]
cave=50
sand=50
fungus=40
[/defense]

# Death Scorpions have harder shell than normal scorpions

[resistance]
blade=70
pierce=70
fire=100
cold=100
[/resistance]

[attack]
damage=20

[specials]
{WEAPON_SPECIAL_DEATH_STING}
[/specials]
[/attack]

[attack]
damage=16
[/attack]

[attack]
name=death ray
description="death ray"
icon=attacks/dark-missile.png
type=fire
range=ranged
damage=10
number=4
[/attack]

[attack_anim]
[/attack_anim]

[attack_anim]
[/attack_anim]

# Death Scorpions have an extra ranged attack

[attack_anim]
[filter_attack]
name=death ray
[/filter_attack]

start_time=-100
missile_start_time=-50

[missile_frame]
duration=100
image=projectiles/darkmissile-n.png
image_diagonal=projectiles/darkmissile-ne.png
[/missile_frame]

{SOUND:HIT_AND_MISS magic-dark.ogg magic-dark-miss.ogg -50}
[/attack_anim]
[/unit_type]

  • Administrator
  • Full Member
  • *****
  • Posts: 155
  • I love anime and science!
    • View Profile
    • My blog

  • Total Badges: 24
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Fourth year Anniversary
Re: Weapon special: death sting (with example unit)
« Reply #1 on: February 01, 2017, 06:40:08 pm »
Update: Test video


 

+-Recent Topics

Train Station 2 Mod APk by Lex Luthor
September 14, 2023, 08:05:17 pm

Poison of the Day by zwclose7
March 16, 2020, 06:45:08 pm

The properties of GP nerve agent by xchg
October 19, 2018, 07:40:57 pm

A new route of synthesis for G-series agents by Basquyatti
October 15, 2018, 06:12:57 am

Synthesis of Methylisobutylcarbinylsarin (GH) by APC process by Basquyatti
October 14, 2018, 07:55:33 am

Synthesis conventional of Sarin by Basquyatti
October 02, 2018, 07:57:32 am

Reaction CX-7 (Experimental) by zwclose7
October 02, 2018, 12:46:47 am

The military preparation of FTH by Basquyatti
October 01, 2018, 10:15:39 pm

My chemistry videos by zwclose7
April 15, 2018, 06:05:45 pm

new way to download anime (XDCC) by saikyouzero21
April 03, 2018, 09:54:29 pm