Posts: 787
Thanks: 2867 in 7 Posts
10 Achievements
Referencing a non-existent BCON, what happens?
I'm planning a bit of career expanding, and I want to introduce a couple of extra details to some careers. One is a check for a new token to get promoted to some levels (for some careers), and another is a pop-up offering a switch to a different career on a particular promotion (inspired by the career "branches" in TS3).
I know I could do this by essentially inserting a bit of code that says "is the career GUID X?" and if so look up whether it's supposed to check more details/offer the alternative promotion etc. But if I can get this all working I'd rather like to be able to repeat the whole project for other careers, and have an option for others to incorporate this for their own career editing projects - and that gets annoying if you have to make sure you've checked all the right careers.
So... it would be really handy to be able to introduce a new BCON to the careers that I'm adding this stuff to, with a 0 or 1 for each level depending on what needs to happen, and write the code to say if BCON 1099:level is >0 then... - but of course most careers
won't have a BCON 1099 (or whatever number I pick that isn't currently used). So what happens? If this throws an error, is there any way to say "is there a BCON 1099 for this group?" and act accordingly?
Many thanks for any help.