View Full Version : Why is this event not being triggered?
The Avon Lady
09-14-2005, 06:21 AM
I have 3 objectives in my mission:
Sink target1
Sink target2
Reach mapzone1
I have the following 3 triggers defined:
Failed to sink target1
Failed to sink target2
Reached mapzone1
I have an event to issue a message should all 3 of the above triggers be true. Yet when I run the mission in SH3 and I go to mapzone1 without sinking anything to test this out, the event is not triggered, resulting in no message being displayed.
How come? :-? :cry:
The Avon Lady
09-14-2005, 07:33 AM
Another question, possibly related:
What is the "Message repeated until received" checkbox for in the event defintion window? :-?
The Avon Lady
09-15-2005, 01:34 AM
/bump
Nobody knows nothin'? :oops:
The Avon Lady
09-22-2005, 07:12 AM
/bump
Nobody? :cry:
If someone can help, please email me.
Jace11
09-22-2005, 09:00 AM
don't know, upload it so peeps can have a look. I'm not sure the SH3 editor handles logic in objectives too well.
I imagine the message thing will mean it is repeatedly sent. If you are submerged (deep) you cant receive it, so i guess it just keeps sending it till you do..
The Avon Lady
09-22-2005, 09:13 AM
Here's a copy of the SP mission, Royal Flush (http://www.filefront.com/?filepath=/theofpfaq/sh3/SH3_Mission_RoyalFlush.rar).
There is nothing great about the mission. I haven't even tweaked it much. This is mainly a learning exercise for me.
Help appreciated. :up:
Jace11
09-22-2005, 10:36 AM
Hmm, well I had a quick look, and my opinion is the "failed" objectives are not working.
Nothing to do with your mission, but I think "Ship X sunk = failed" cannot be used to trigger events. Looking at the objective, you cannot set any time limit or anything else, therefore as long as the ship exists the possibility of meeting the objective remains. Therefore as an objective, it can't be failed without linking it to another variable. So your Transports exist when you reach the map zone, however the objective doesn't count this as a failure to sink them. You could go back and sink them or sink them later on their journey, basically it is open ended.
Now linking this with another objective (Reach Zone) would be the way to try and get it work (as you tried), but it looks like it just doesn't work like that in this editor. Seems to me that the problem with the "failed" is carried over into the events, so those events where you egress and don't sink anything are never met as some objectives are open ended and not met...
It is like a horrid logic puzzle. Note the editor doesn't really have AND OR NOT etc for linking objectives so its not as versetile as other game editors.
No idea if there is a fix for this.
The Avon Lady
09-26-2005, 08:01 AM
Hmm, well I had a quick look, and my opinion is the "failed" objectives are not working.
Nothing to do with your mission, but I think "Ship X sunk = failed" cannot be used to trigger events. Looking at the objective, you cannot set any time limit or anything else, therefore as long as the ship exists the possibility of meeting the objective remains. Therefore as an objective, it can't be failed without linking it to another variable. So your Transports exist when you reach the map zone, however the objective doesn't count this as a failure to sink them. You could go back and sink them or sink them later on their journey, basically it is open ended.
I have not fully tested but I think I've found the solution. It requies setting the trigger's ObjState value to -1. I believe that means that the objective is neither passed(0?) nor failed (1?).
This can be set in the editor by leaving the objective status dropdown list on blank.
Just uploaded my latest version of the mission. Try it if you like. :D
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.