Having recently watched the Objectives tutorial from OneTwo, and reading up on the benefits of Records. I've tried to make use of them.
I have had some level of success, however an interesting issue has occurred, when I tried to progress between the quests, and wanted to setup a radius of unit detection similar to the one seen in OneTwo's video but using Records.
The second part of the quest just wouldn't trigger. After adding some debug messages in the form of text messages, I believe the issue is that when I use Test Document, my "Triggering Player" value seems to be -1. I cannot make sense of this from anything I've found on Google, and you get the array doesn't support negative value error, as a result my corresponding array index is out of sync.
I initially thought it might be due my adjustment of Players, I removed "0 Neutral", however after restoring defaults and fixing the corresponding parts of the map. I am seeing the same issue.
The attached link is a copy of my map in it's current state. If you select Medic, and wait for the default event to complete, you will see the issue, I'm trying to get a new objective to appear once "a player" gets within a reasonable distance of the civilian).
Yes it appears you have fallen short when it comes to understanding triggers. For starters your debug trigger has no event. Anything that is "triggering" is in reference to the event of the trigger ( ie there is no player in an non exsistent event). Anytime you using "triggering" is must be in relation to the event and the event itself must be one that provides such information. If you want to pass information forwards through different threads you will want to use a parameter through use of a custom action definition which i highly recommend learning if you plan to work long term in any way in the editor.
Thanks for the info, I'm guessing -1 is basically null value then. After looking further into this I realized I was also only using local records. I never instantiated global versions. Since making the relevant changes, this is now working =D. Now I understand why I couldn't reference my records from Event Definitions I tried. I had initially thought to make a "generic" quest / objective giver trigger. I will give this another shot now. Thanks again.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi All,
Having recently watched the Objectives tutorial from OneTwo, and reading up on the benefits of Records. I've tried to make use of them. I have had some level of success, however an interesting issue has occurred, when I tried to progress between the quests, and wanted to setup a radius of unit detection similar to the one seen in OneTwo's video but using Records. The second part of the quest just wouldn't trigger. After adding some debug messages in the form of text messages, I believe the issue is that when I use Test Document, my "Triggering Player" value seems to be -1. I cannot make sense of this from anything I've found on Google, and you get the array doesn't support negative value error, as a result my corresponding array index is out of sync.
I initially thought it might be due my adjustment of Players, I removed "0 Neutral", however after restoring defaults and fixing the corresponding parts of the map. I am seeing the same issue.
The attached link is a copy of my map in it's current state. If you select Medic, and wait for the default event to complete, you will see the issue, I'm trying to get a new objective to appear once "a player" gets within a reasonable distance of the civilian).
Marine Survival 0.1
Possible thoughts I've had:
1) Is Triggering Player known to be unreliable? (if so are there any alternative approaches?)
2) Do you have to set your triggering player somewhere in the Editor?
3) My Math is gone wrong somewhere <_<
4) Some Editor concept I don't know about is breaking it?
Once again, thanks in advance for any ideas/suggestions/fixes, to help shrink the haystack I need to find the needle in, are much appreciated.
Regards
Tim
@TimCheong: Go
Yes it appears you have fallen short when it comes to understanding triggers. For starters your debug trigger has no event. Anything that is "triggering" is in reference to the event of the trigger ( ie there is no player in an non exsistent event). Anytime you using "triggering" is must be in relation to the event and the event itself must be one that provides such information. If you want to pass information forwards through different threads you will want to use a parameter through use of a custom action definition which i highly recommend learning if you plan to work long term in any way in the editor.
@hobbidude: Go
Thanks for the info, I'm guessing -1 is basically null value then. After looking further into this I realized I was also only using local records. I never instantiated global versions. Since making the relevant changes, this is now working =D. Now I understand why I couldn't reference my records from Event Definitions I tried. I had initially thought to make a "generic" quest / objective giver trigger. I will give this another shot now. Thanks again.