Prevent player to delete building
- ParaworldFan
- - SEAS -
- Posts: 482
- Joined: Tue Nov 26, 2019 19:36 pm
- Location: Russia, Surgut
Prevent player to delete building
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.
P.S Don’t suggest make trigger which make automatic defeat for player who deleted building, it’s ridiculous.
Re: Prevent player to delete building
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.
- ParaworldFan
- - SEAS -
- Posts: 482
- Joined: Tue Nov 26, 2019 19:36 pm
- Location: Russia, Surgut
Re: Prevent player to delete building
So, that’s what for this option it is (Destructible)?
Re: Prevent player to delete building
originally not, but it has been assigned to do that in MIRAGE
- ParaworldFan
- - SEAS -
- Posts: 482
- Joined: Tue Nov 26, 2019 19:36 pm
- Location: Russia, Surgut
Re: Prevent player to delete building
Well than, that’s good. Btw do mirage have same option, but to prevent the player to repair building? And remain it selectable?
Re: Prevent player to delete building
No, there was no need for that
- ParaworldFan
- - SEAS -
- Posts: 482
- Joined: Tue Nov 26, 2019 19:36 pm
- Location: Russia, Surgut
- AnthonyCole
- - Admin -
- Posts: 2134
- Joined: Sat Apr 18, 2009 13:17 pm
Re: Prevent player to delete building
Can repair prevention be done by not making the class of the obj be BLDG but something else?
I've never seen code like this.
CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/Connect four/etc
CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/Connect four/etc
- ParaworldFan
- - SEAS -
- Posts: 482
- Joined: Tue Nov 26, 2019 19:36 pm
- Location: Russia, Surgut
Re: Prevent player to delete building
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
Re: Prevent player to delete building
this can be done by extending the functionality of ACDO trigger action
- AnthonyCole
- - Admin -
- Posts: 2134
- Joined: Sat Apr 18, 2009 13:17 pm
Re: Prevent player to delete building
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.
I've never seen code like this.
CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/Connect four/etc
CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/Connect four/etc
- ParaworldFan
- - SEAS -
- Posts: 482
- Joined: Tue Nov 26, 2019 19:36 pm
- Location: Russia, Surgut
Re: Prevent player to delete building
This topic was about how to make it, without editing scripts or other game files, unless I ve putted it in topic “Modding”
Re: Prevent player to delete building
True, but the current question is not anymore about the one you started the topic aboutParaworldFan 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”
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 ^_^
- ParaworldFan
- - SEAS -
- Posts: 482
- Joined: Tue Nov 26, 2019 19:36 pm
- Location: Russia, Surgut
Re: Prevent player to delete building
I just meant to say, I am interested in solving problem without editing game files. So, like Henry helped me with Destructible thing
- ParaworldFan
- - SEAS -
- Posts: 482
- Joined: Tue Nov 26, 2019 19:36 pm
- Location: Russia, Surgut
Re: Prevent player to delete building
I must say, object which are Destructible, cannot be killed through ACDO trigger
Re: Prevent player to delete building
then you need to do it with 2 triggers, first unset Destructible attrib, then delete it with ACDO