Prevent player to delete building

Post Reply
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Prevent player to delete building

Post by ParaworldFan »

I want to prevent player to delete some buildings on map. Any tips, suggestions how to make it?
P.S Don’t suggest make trigger which make automatic defeat for player who deleted building, it’s ridiculous.
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Prevent player to delete building

Post by MrMorgana »

In MIRAGE you can do it by ticking the "Destructible" checkbox in object property windows if it is a preplaced building. If it gets created only later, you need to set that attribute to 'true' by trigger.
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Prevent player to delete building

Post by ParaworldFan »

So, that’s what for this option it is (Destructible)?
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Prevent player to delete building

Post by MrMorgana »

originally not, but it has been assigned to do that in MIRAGE
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Prevent player to delete building

Post by ParaworldFan »

Well than, that’s good. Btw do mirage have same option, but to prevent the player to repair building? And remain it selectable?
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Prevent player to delete building

Post by MrMorgana »

No, there was no need for that
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Prevent player to delete building

Post by ParaworldFan »

Okay
User avatar
AnthonyCole
- Admin -
Posts: 2134
Joined: Sat Apr 18, 2009 13:17 pm

Re: Prevent player to delete building

Post by AnthonyCole »

Can repair prevention be done by not making the class of the obj be BLDG but something else?
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Prevent player to delete building

Post by ParaworldFan »

I don’t understood what you meant. But I need trigger that will be a quip able due some conditions to disable repairing of some preplaced map buildings
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Prevent player to delete building

Post by MrMorgana »

this can be done by extending the functionality of ACDO trigger action
User avatar
AnthonyCole
- Admin -
Posts: 2134
Joined: Sat Apr 18, 2009 13:17 pm

Re: Prevent player to delete building

Post by AnthonyCole »

Every object has a class (BLDG, ANML, CHTR, OTHR, ...). Afaik only BLDG can be repaired. So if you want to have a building that can be built, but not repaired, maybe set it as a different class? But that was just some idea.
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Prevent player to delete building

Post by ParaworldFan »

This topic was about how to make it, without editing scripts or other game files, unless I ve putted it in topic “Modding”
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Prevent player to delete building

Post by MrMorgana »

ParaworldFan wrote: Tue May 05, 2020 8:41 am This topic was about how to make it, without editing scripts or other game files, unless I ve putted it in topic “Modding”
True, but the current question is not anymore about the one you started the topic about :D
Anyways, if the thing you would like to do can't be done currently, only by editing something in game files, we should still let you know, even if the topic isn't in Modding category.
But moving the topic into a different, appropriate category is also possible ^_^
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Prevent player to delete building

Post by ParaworldFan »

I just meant to say, I am interested in solving problem without editing game files. So, like Henry helped me with Destructible thing 😁
User avatar
ParaworldFan
- SEAS -
- SEAS -
Posts: 482
Joined: Tue Nov 26, 2019 19:36 pm
Location: Russia, Surgut

Re: Prevent player to delete building

Post by ParaworldFan »

I must say, object which are Destructible, cannot be killed through ACDO trigger
User avatar
MrMorgana
- Admin -
Posts: 947
Joined: Tue Aug 18, 2009 12:42 pm
Location: Koprulu Sector

Re: Prevent player to delete building

Post by MrMorgana »

then you need to do it with 2 triggers, first unset Destructible attrib, then delete it with ACDO
Post Reply

Return to “English”