sgtice 10 Posted August 6, 2012 Conflict: Is there a way to have everything inside of {} work & not negate all the code below such? Just found out about creatediarylinks & i'm trying to use two different sections. I can get one working but if I close off the section it causes the 2nd one to have broken links. creatediarylink - http://community.bistudio.com/wiki?title=createDiaryLink&diff=68230&oldid=prev Proposition: How do I close the first links subject without denying myself the ability to use everything past the closing bracket. Resolution: !?!?!??! profit? Share this post Link to post Share on other sites
Inkompetent 0 Posted August 6, 2012 Please post an example of the code you are trying with. Will make it easier to understand your problem. Share this post Link to post Share on other sites
sgtice 10 Posted August 6, 2012 (edited) // diary entries _index = player createDiarySubject ["OP","Operation Torch"]; _index = player createDiarySubject ["XX","X"]; player createDiaryRecord["XX", ["X", ""X"]]; player createDiaryRecord["XX", ["X", "X"]]; funcProcessDiaryLink = { processDiaryLink createDiaryLink ["OP", _this, ""]; }; ROE = player createDiaryRecord ["OP", ["XXXX", "Fill in later." ]]; Mission = player createDiaryRecord ["OP", ["Mission", "Fill in later." ]]; Situation = player createDiaryRecord ["OP", ["XXXX", "X <execute expression='Mission call funcProcessDiaryLink'>Mission</execute> file. <br/> <br/> A. Enemy Forces <br/> <br/> B. Friendly Forces <br/> <br/> C. Terrain <br/> <br/> Fill in later." ]]; funcProcessDiaryLink = { processDiaryLink createDiaryLink ["XX", _this, ""]; }; TS3 = player createDiaryRecord ["XX", ["X", "XXXX" ]]; Website = player createDiaryRecord ["XX, ["X", "XXXX <execute expression='TS3 call funcProcessDiaryLink'>Teamspeak 3</execute> X" ]]; }; Trying to figure out how I can get the diary links in both sections to work, I can make one work but then i'm forced into using the regular entries in the others. ---------- Post added at 01:55 PM ---------- Previous post was at 01:26 PM ---------- So I have links in two different sections working now. It seems instead of placing the creatediarylink line in two different places they need to be together. funcProcessDiaryLink = { processDiaryLink createDiaryLink ["OP", _this, ""]; }; funcProcessDiaryLink = { processDiaryLink createDiaryLink ["SC", _this, ""]; }; For both links in both sections to work. Now the only problem seems to be keeping one of the links going to the proper receiving link & not into the other section. Edited August 6, 2012 by SGTIce Figured part of it out Share this post Link to post Share on other sites
kylania 568 Posted August 6, 2012 (edited) Is all that really necessary? Do you really need to provide a link within the text for a something they can just click on the next diary entry to get to? It's probably failing because of this: _index = player createDiarySubject ["XX","X"]; player createDiaryRecord["XX", ["X", "[color="#FF0000"]"[/color]X"]]; You had an extra " there. Edited August 6, 2012 by kylania Share this post Link to post Share on other sites
sgtice 10 Posted August 6, 2012 It's not necessary per se, but it would be nice to have for future reference. Didn't notice that before, but seems I unknowngly removed that when I rearranged the diary entries. Share this post Link to post Share on other sites
kylania 568 Posted August 6, 2012 Maybe post what you have now? It all seemed to be working for me at least. Share this post Link to post Share on other sites
sgtice 10 Posted August 7, 2012 // diary entries _index = player createDiarySubject ["SC","Serpent Company"]; _index = player createDiarySubject ["OP","Operation Torch"]; funcProcessDiaryLink = { processDiaryLink createDiaryLink ["OP", _this, ""] }; funcProcessDiaryLink = { processDiaryLink createDiaryLink ["SC", _this, ""]; }; ROE = player createDiaryRecord ["OP", ["Rules of Enagement", "Fill in later." ]]; Mission = player createDiaryRecord ["OP", ["Mission", "Fill in later." ]]; Situation = player createDiaryRecord ["OP", ["Situation", "X <execute expression='Mission call funcProcessDiaryLink'>Mission</execute> file. <br/> <br/> A. Enemy Forces <br/> <br/> B. Friendly Forces <br/> <br/> C. Terrain <br/> <br/> Fill in later." ]]; TS3 = player createDiaryRecord ["SC", ["Teamspeak 3", "X" ]]; Website = player createDiaryRecord ["SC", ["Website", "X <execute expression='TS3 call funcProcessDiaryLink'>Teamspeak 3</execute>" ]]; }; keep on messing with it & somehow breaking it, but I had it working earlier by just rearranging the process compile lines. Share this post Link to post Share on other sites