:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Wed Sep 30, 2020 3:12 am
All times are UTC + 0
 Forum index » Modding Central » Tiberian Sun Editing Forum » Mapping Discussion
FinalSun: Can a building be flipped between multiple houses?
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
SteamsDev
Cyborg Engineer


Joined: 12 Mar 2017

PostPosted: Wed Aug 19, 2020 6:41 pm    Post subject:  FinalSun: Can a building be flipped between multiple houses? Reply with quote

I want to try to make an event where a particular building changes between multiple houses at different points during the mission. I tried using a string of attached triggers to do this but to no avail.

For example, I have a building start off as GDI, and at one point during the mission I want it to switch to being Nod, and then later on, after a certain event is cleared, switch back to GDI. I have two triggers (one to switch it to Nod and one to GDI) and I attach one of the triggers to the building and then attach the other trigger to the first one. The problem is that only the trigger that is attached to the building itself actually changed the building to - in this case - GDI, and the other trigger does not change the house of the building at all, and I know the trigger springs because other events that the trigger is supposed to make do happen.

In short, I can't get a string of attached triggers to work no matter what I try. I want to know if it is possible or if it's impossiblre to do. Any feedback is appreciated!
_________________
"I am putting myself to the fullest possible use, which is all I think that any conscious entity can ever hope to do." - HAL 9000

Official scripting leader of BR Studios
Check out our ModDB: http://www.moddb.com/company/progen-group
Yuri's Revenge: CnCD2K: http://www.moddb.com/mods/red-alert-2-yuris-revenge-cncd2k-mod

Back to top
View user's profile Send private message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Thu Aug 20, 2020 6:35 am    Post subject: Reply with quote

You shouldn't be attaching Triggers to one-another here, I think.

When you "attach a trigger" to something, your actually attaching the trigger tag to that thing. And in the case of "place trigger on map", you're attaching the CellTag to a map-cell.

If you attach the trigger tags to one-another, it might do it. I do recall seeing that in some maps, but I'm not sure if WW-made or fan-made.
I think the Tag Editor was underneath the Trigger Editor in the Edit menu.

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID Skype Account
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Thu Aug 20, 2020 8:36 am    Post subject: Reply with quote

Objects are associated with tags and single tag can have multiple triggers (linked triggers). And those triggers can be enabled or disabled. Change house (action 14) is not strict about trigger owner or object owner, so that isn't a problem.

Attaching a quick test map to demonstrate that.


ChangeHouseRepeat.7z
 Description:

Download
 Filename:  ChangeHouseRepeat.7z
 Filesize:  7.8 KB
 Downloaded:  2 Time(s)


Back to top
View user's profile Send private message
RP
Commander


Joined: 12 Jul 2012
Location: Mapping God Heaven

PostPosted: Thu Aug 20, 2020 9:06 am    Post subject: Reply with quote

You attach triggers to triggers, not tags.
For all triggers in the chain, only the parent trigger should have a tag (attached to the building).
I am not sure about the repeating flag of the tag, you should test it out gives gives best results.

Edit: missed E1 Elite's reply.
_________________


Mental Omega 3.0 Mission creator - Creator of FinalOmega: APYR 3.0 Map Editor

/ppm/'s stupidity

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Tiberian Sun Editing Forum » Mapping Discussion
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1362s ][ Queries: 12 (0.0065s) ][ Debug on ]