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: 817 | Subs: 5

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: 817 | Subs: 5

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: 817 | Subs: 5

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: 817 | Subs: 5

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: 817 | Subs: 5

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: 817 | Subs: 5

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

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
Last Wednesday, 17:00 PM
Osinyagov: Wow, i remember you from zansi and vali videos, good old memories
Last Wednesday, 16:58 PM
Beinhard: o7 miss this game and zansi
Last Wednesday, 14:09 PM
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
02 Apr 2025, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
02 Apr 2025, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
01 Apr 2025, 20:34 PM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" :guyokay:
01 Apr 2025, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
01 Apr 2025, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
01 Apr 2025, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
01 Apr 2025, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
27 Mar 2025, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
27 Mar 2025, 04:31 AM
Soheil: Coh2 still broken server ?
25 Mar 2025, 18:27 PM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific. :snfQuinn:.
24 Mar 2025, 02:46 AM

Ladders Top 10

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

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

200 users are online: 200 guests
0 post in the last 24h
3 posts in the last week
54 posts in the last month
Registered members: 53563
Welcome our newest member, Fantomiz
Most online: 2043 users on 29 Oct 2023, 01:04 AM