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


The time now is Wed Nov 27, 2024 9:31 pm
All times are UTC + 0
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] Mark the topic unread ::  View previous topic :: View next topic
Author Message
SteamsDev
Soldier


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  Mark this post and the followings unread

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!

_________________
Content creator for Command and Conquer: Tiberian Sun and Red Alert 2 games and mods.

YouTube: https://www.youtube.com/@SteamsDev
ModDB: https://www.moddb.com/members/steamsdev

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  Mark this post and the followings unread

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 YouTube User URL Twitter Channel URL Skype Account
E1 Elite
General


Joined: 28 May 2013

PostPosted: Thu Aug 20, 2020 8:36 am    Post subject: Reply with quote  Mark this post and the followings unread

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:  18 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  Mark this post and the followings unread

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] Mark the topic unread ::  View previous topic :: View next topic
 
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.1966s ][ Queries: 13 (0.0094s) ][ Debug on ]