Community Forums > Voobly Community > Age of Empires II: The Conquerors > Custom Scenario > Scenario Design > Scenario Design Questions > Anti-Deletes ;?
[1]
Displaying 1 - 6 out of 6 posts
1 User(s) are reading this topic (in the past 30 minutes)
0 members, 1 guests
0 members, 1 guests
What's popular right now:








AoKTS updates (80 users)

Word Association (75 users)

1.6 reward campaing (38 users)

CBA PathBlood 1.8.2 (36 users)

New CBA Hero now supports HD / D... (24 users)

TIW 2020 Map votes (23 users)

what does the file age2_x1.xml d... (17 users)
Most active threads in past week:








Strange bug (6 posts)

THis record just pauses and im u... (5 posts)

Unable to spec 1.6 game data games (4 posts)

a problem in download (4 posts)

Nobody can play 1.6 anymore. (4 posts)

Elite skins for 1.6 (3 posts)

1.6 out of sync without player d... (2 posts)
I can't remember specifically how the triggers are made. I'll look later in a couple days when I have time. I do know the anti-delete here works flawlessly: [You must login to view link]
I'd also search AOK heaven games more in-depth for scenario designing resources.
Something about creating a horse with every raze and if the horse isn't there when an object is razed the player gets booted...
Trigger: Raze-counter
Starts: ON
Looping: YES
Condition: Accumulate Attribute: 1 Razing
Effect: Tribute: 1 Razing from Player to GAIA
Effect: Activate Trigger: Building Razed
Then a trigger to deactivate the Building Deleted trigger if it was razed:
Trigger: Building Razed
Starts: OFF
Looping: NO
Condition: Timer: 2
Effect: Deactivate Trigger: Building Deleted
This trigger activates the delete-detection trigger:
Trigger: Building Lost
Starts: ON
Looping: NO
Condition: Destroy Object: Desired Object
Effect: Activate Trigger: Building Deleted
If the building was deleted, this trigger will fire:
Trigger: Building Deleted
Starts: OFF
Looping: NO
Condition: Timer: 4
Effect: Punishment for Deleting building
Instead of "Destroy Object" you can use "Own Fewer Objects". This means you can have a "looping" delete-detection when. For example:
Trigger: Building Lost
Starts: OFF
Looping: NO
Condition: Own Fewer Objects: 0 The Accursed Tower (Let's say you start with only 1 tower)
Effect: Activate Trigger: Building Deleted
Effect: Activate Trigger: Re-activate Building Lost
Trigger: Re-activate Building Lost
Starts: ON
Looping: OFF
Condition: Own Objects: 1 The Accursed Tower
Effect: Activate Trigger: Building Lost
I hope this works. It's been a while since I used it last, so there might be something wrong, not sure
You'll also need AOKTS to have razes as an atrribute.
[You must login to view link]
If you're making this scenario for the AOFE expansion you'll need a different version of that though. Just lmk if that's the case/you can't find it.