Jump to content
Sign in to follow this  
sxp2high

Delete or change diary record

Recommended Posts

Anyone knows if this is possible?

I want to change or delete and re-create notes during the game, so it contains the latest value of something. Show stats kinda thing.

_myValue = 1;

_myNote = player createDiaryRecord ["Diary", ["Hints", format["
Runtime: %1
", _myValue]]];

Return value of _myNote is the note content. "Runtime 1"

I tried overwriting the note, but that just adds another line to the note each time.

while {true} do {

_myValue = 1;

_myNote = player createDiaryRecord ["Diary", ["Hints", format["
Runtime: %1
", _myValue]]];

sleep 1;
};

I tried removing the note content between the loops, like this:

_myNote = player createDiaryRecord ["Diary", ["Hints", format[""]]];

no effect.

Changing _myNote to nil or to an empty string doesn't work either.

Any way to do this :confused:

Share this post


Link to post
Share on other sites

I am also interested in this - I wanted to do some diary updates without it just writing to a new line in the diary.

Hopefully there is a way.

Share this post


Link to post
Share on other sites

There is a way. The Statistics note does that. (Where your kills are listed)

But I had no luck finding that. I searched all ArmA 2 pbos.

Share this post


Link to post
Share on other sites

Any update on this? I would like to have one tab showing updated weather forecasts where the info is just updated rather than appended.

Share this post


Link to post
Share on other sites

I would love to be able to delete notes & tasks and then recreate same task/notes. If I'm following the OP correctly anyhow.

---------- Post added at 04:31 ---------- Previous post was at 04:29 ----------

what about setVariable? it has a task option. Though you're going for notes

Share this post


Link to post
Share on other sites
I would love to be able to delete notes & tasks and then recreate same task/notes. If I'm following the OP correctly anyhow.

---------- Post added at 04:31 ---------- Previous post was at 04:29 ----------

what about setVariable? it has a task option. Though you're going for notes

i'm also lookin for an answer to this even if its a jerry-rigged solution. i want the diary to be an impersonal objective system like morrowind in this mission im making. youre an afghan and you start the game unarmed, but as you go through the world and talk to people you can do things like join the mujahideen, grow food, invest money, be a news reporter etc. as you talk to people i want it to add entries in your diary such as "my friend abdullah has spoken to me about a local mosque in bastam that needs a new imam. he said that the valley's mullah might know more about the situation. i can find him praising allah on the rocky crags south of nur." the only problem is that i would like to change the diary entries or delete them relative to things that happen along the way.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×