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 Thu Apr 18, 2024 2:25 am
All times are UTC + 0
Triggers & Events
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [11 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Sun Oct 20, 2019 7:34 am    Post subject:   Reply with quote  Mark this post and the followings unread

I'm not sure where this is supposed to go, but something's wrong with how TriggerType's value are labeled.

You know that Polar Bear easter egg from Romanov on the run?
In order for its trigger to enable, another trigger checks for the set of 4 locals.
According to its trigger type 0 (OR one time) one would think only one local needs to be set to enable the easter egg.
However, testing has concluded that for the easter egg to enable, ALL locals must be set. Which doesn't make sense if the trigger Type is OR one time, and has multiple local-checks as its events.

I'd have thought type 1 (AND one time) is the one that elicits such behavior?
Does the game make an exception for triggers that check for whether or not locals/globals are set/cleared and requires them all to be met or this just an error in the labeling of the Type for YR?

EDIT 1: ok, setting the trigger type to 1 (AND one time) makes the trigger in question not fire at all, even when all conditions are met.

EDIT 2: Trigger type 2 (OR repeating) is the same as 0, except that it repeats.

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: Sun Oct 20, 2019 3:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Have provided Tag repeat description for OR/AND cases in Tags window in the patched FA2. Check ModEnc also.

Can't understand the question and don't know which map you mentioned. I haven't played missions in a long time. Anyway, it is not related to FA2/patching.

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


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Sun Oct 20, 2019 3:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

E1 Elite wrote:
it is not related to FA2/patching.

Then what is it related to then? Considering the patch also gives wrong information, it very much IS related to FA2/patching.
All I said was that the description the patch provides is wrong or the game makes an exception that is not mentioned in the description.

The case is as follows: sov04dmd has a trigger that has 4 "local is set" events, and its type is 0 (OR one time).

This means in theory that the trigger will fire whenever any of the locals are set, right?

Well, that is not the case.
The trigger will only fire if ALL four locals are set. Therefore trigger type 0 (OR) is not, in fact, OR. Or the game makes an exception when locals are involved, switching from OR to AND.

Then there's also type 1 (AND one time), which made it so the never fired, even when all conditions were met, pretty much making the trigger useless.

Lastly, type 2 (OR repeating) is identical to 0 (OR).
With the exception of it repeating, never firing once.

I'm talking about the Enable Set5 trigger in sov04dmd

Last edited by TAK02 on Sun Oct 20, 2019 8:18 pm; edited 1 time in total

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
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sun Oct 20, 2019 6:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

In order for a trigger to fire all of the events listed have to be satisfied.

If you want to have a trigger that can be fired by different events then make one master trigger that is disabled & then multiple other triggers with different events that will re-enable the master when any of them are fired.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Sun Oct 20, 2019 8:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
In order for a trigger to fire all of the events listed have to be satisfied.

Then in that case why does the description/label say "OR one time" when it's an AND in reality?

My issue is not the triggers.

My issue is that whoever wrote the labels and descriptions for the trigger type, saying they're "OR" when in reality they were "AND" all along.
And then there's 1 (supposedly AND one time) which makes triggers non-functional.

Does proper OR functionality exist in the game or prior versions of the engine?

Mig Eater wrote:
If you want to have a trigger that can be fired by different events then make one master trigger that is disabled & then multiple other triggers with different events that will re-enable the master when any of them are fired.

...never thought of that one. Thanks!

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
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Oct 20, 2019 9:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

I seem to recall setting up a trigger with 2 events, but would fire with only one satisfied, so perhaps the condition "1" defines this behaviour?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

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


Joined: 28 May 2013

PostPosted: Mon Oct 21, 2019 3:20 am    Post subject: Reply with quote  Mark this post and the followings unread

When multiple events are given in a single line in the [Events] section, all those events should be satisfied to activate its trigger. If there are multiple actions in a single line of [Actions], all those actions has to be executed when that trigger is activated. If you want ANY case with those events, give those events in separate lines and like Mig Eater said, enable the master trigger through any of those different events. Can use a local variable also for that, like different events could set the same local variable.

These multiple events/actions on the same line is not related to Tag's OR/AND/Repeat cases even though FA2/FinalSun UI is designed that way to show those cases in both the trigger window and tag window. But the value set in either of those windows sets the Tag's field only.

Tag's OR/AND/Repeat are applicable to the map elements which are associated with its Tag ID like pre-placed technotypes of units/infantry/aircrafts/buildings, teamtypes and celltags. Check ModEnc for formats. Those 0, 1 and 2 is set on the tag's entry only. Trigger's entry for repeating is obsolete and is leftover from RA1 which didn't have tags.

FA2/FinalSun originally showed only 0 and 2. Patched FA2 gives the 1 - AND one time option also in the dropdown as discussed in this thread.

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


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Mon Oct 21, 2019 4:53 am    Post subject: Reply with quote  Mark this post and the followings unread

G-E wrote:
I seem to recall setting up a trigger with 2 events, but would fire with only one satisfied, so perhaps the condition "1" defines this behaviour?

I tested it myself too, but 1 just made the trigger never fire.

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: Mon Oct 21, 2019 5:37 am    Post subject: Reply with quote  Mark this post and the followings unread

Tag's 1 - AND one time needs its own event with say the attached objects etc. associated with its tag ID. If you have just one event instead of multiple events, still it won't fire if it doesn't have the associated tag check. If you have multiple events including the tag associated event in the same line, then all the other events should have already occurred and the deciding event should be the tag's associated event, for its trigger to fire. Game is implemented like that, call it a bug in the game if you want.

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


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Mon Oct 21, 2019 5:40 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm... lost. Associated tag?

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: Mon Oct 21, 2019 6:07 am    Post subject: Reply with quote  Mark this post and the followings unread

Check ModEnc for formats of celltag or infantry etc. Celltags are associated with tags. Pre-placed technotypes or teamtypes can have an associated tag. Events like entered by on celltag or attached objects destroyed etc. have tag association. Events like elapsed time or all buildings destroyed for a house or local variable set etc. are not associated with tags.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [11 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.1516s ][ Queries: 11 (0.0109s) ][ Debug on ]