Login

russian armor

Is it possible to have a timed upgrade?

8 Nov 2019, 10:41 AM
#1
avatar of ChrisMantou

Posts: 23

What I mean is that add upgrade to one squad through an ability, and the upgrade will be removed after several seconds.
I tried various methods but somehow none of them works:(

Any pointing will be appreciated, thanks.
8 Nov 2019, 10:43 AM
#2
avatar of SneakEye
Senior Modmaker Badge

Posts: 458 | Subs: 3

What kind of ability is it? Is it still running at the moment that you want to delete the upgrade?
8 Nov 2019, 20:05 PM
#3
avatar of ChrisMantou

Posts: 23

What kind of ability is it? Is it still running at the moment that you want to delete the upgrade?

Actually its the ability that adds a 1 second aura to a unit, and aura contains the upgrade for units in the aura
8 Nov 2019, 20:22 PM
#4
avatar of SneakEye
Senior Modmaker Badge

Posts: 458 | Subs: 3

You could add a requirement_action in sbps/action_apply. It checks on has_squad_upgrade and then in actions: a delay which removes the upgrade eventually.
8 Nov 2019, 20:54 PM
#5
avatar of ChrisMantou

Posts: 23

You could add a requirement_action in sbps/action_apply. It checks on has_squad_upgrade and then in actions: a delay which removes the upgrade eventually.

That will technically work and I tried this as well, but nothing really happens.
8 Nov 2019, 21:03 PM
#6
avatar of SneakEye
Senior Modmaker Badge

Posts: 458 | Subs: 3

That will technically work and I tried this as well, but nothing really happens.

Is the unit still affected by the aura?
8 Nov 2019, 21:17 PM
#7
avatar of ChrisMantou

Posts: 23


Is the unit still affected by the aura?

The aura only last 1 second, which add an upgrade to units in aura
The upgrade still exsist anyway
8 Nov 2019, 21:26 PM
#8
avatar of SneakEye
Senior Modmaker Badge

Posts: 458 | Subs: 3

Perhaps change the ability. Instead of an aura, use a target_action. Then you can make another target_action in the executor after a delay to remove the upgrades.
8 Nov 2019, 21:50 PM
#9
avatar of ChrisMantou

Posts: 23

Perhaps change the ability. Instead of an aura, use a target_action. Then you can make another target_action in the executor after a delay to remove the upgrades.

sorry but what do that mean by target_action? Is the one in the ability?
What I would like to achieve is several units around the target to recieve an timed upgrade.

Because I had several similar kind of abilities but I don't want them to overlay their effects on each other when casting, so the abilities will have to do upgrade check.
8 Nov 2019, 22:02 PM
#10
avatar of SneakEye
Senior Modmaker Badge

Posts: 458 | Subs: 3

Perhaps take a look at "aura\aef_auras\sherman_battle_group_vet".
It uses slot_items to check the situation and those slot_items are automatically removed when the aura ends.
8 Nov 2019, 22:42 PM
#11
avatar of ChrisMantou

Posts: 23

Perhaps take a look at "aura\aef_auras\sherman_battle_group_vet".
It uses slot_items to check the situation and those slot_items are automatically removed when the aura ends.

Still not quite working, but how do sherman battlegroup's slot item work?
10 Nov 2019, 09:40 AM
#12
avatar of SneakEye
Senior Modmaker Badge

Posts: 458 | Subs: 3

Still not quite working, but how do sherman battlegroup's slot item work?

The aura adds a slotitem, with the setting 'permanent' : false. Other auras can check on the presence of that slotitem. The slotitem will be removed when the aura is ended.
14 Nov 2019, 02:13 AM
#13
avatar of ChrisMantou

Posts: 23


The aura adds a slotitem, with the setting 'permanent' : false. Other auras can check on the presence of that slotitem. The slotitem will be removed when the aura is ended.

Just got it to work, thanks
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • Soviets flag Lucky - Cable Sup-port
  • Soviets flag T.R. Olvadi
  • Ostheer flag ZodiAK!
  • Oberkommando West flag CrossFire
uploaded by Olvadi

Board Info

209 users are online: 4 members and 205 guests
oootto92, Sturmpanther, Hannibal, VonIvan
184 posts in the last 24h
1587 posts in the last week
7388 posts in the last month
Registered members: 65049
Welcome our newest member, Savicaq50
Most online: 918 users on 27 Oct 2019, 01:03 AM