nmwn said:

Thank you very much, that worked perfectly!

I was trying to make counter2 automaticaly equal to counter1 (so I don't need raise both counters at the end of every line) but it doesn't worked like that. Never mind anyway, it's very nice as it stands!

Here are another two questions I would like to ask.

1.) Is this possible to raise value of counter by variable or pre-defined value?

Let's say at the top of dialogue I let user adjust amount of bonus points granted for some special, more spicy lines. Shortcuts stands for small bonus, medium bonus, large bonus. Here's the field:

Then I try to execute that in dialogue:

initial_settings:{"counter":0,"counter2":0,"sb":2,"mb":5,"lb":10}

works - regular raise

held:"This is regular line! Now value1 is *counter* and value2 is *counter2* Enjoy standard 20 units!" {"set":{"counter":"+20","counter2":"+20"}}

doesn't work - summoning particular line

held:"This is line with bonus! Now value1 is *counter* and value2 is *counter2* . Just granted regular 20 units and a small bonus!" {"set":{"counter":"+20+[sb]","counter2":"+20+[sb]"}}

doesn't work - summoning particular variable

held:"This is line with bonus! Now value1 is *counter* and value2 is *counter2* . Just granted regular 20 units and a medium bonus!" {"set":{"counter":"+20+*mb*","counter2":"+20+*mb*"}}

held:"That's the line to show that above two methods failed. Unfortunately value1 is *counter* and value2 is *counter2*"

Last line shows that this code won't do maths as I expected, but will simply replace a number with the text (in this case with +20+[sb] or with +20+*mb*). Is it possible to write code doing simple maths? I'd like to have calculations (mostly addition and subtraction) with two variables/values/lines/whatever, lets say *X* and *Y* or as meant above *regular* and *bonus*, with possibility to adjust their values at the top of the dialogue. This way I'd be able to change the pace of counters' rising (therefore how fast specific events are triggered), with changing just few numbers at the top of the document. Is that possible, or "set" command can't do any calculations?

2.) I'm curious about that part:

I've seen animtools in action, I have them somewhere here and they are fun! I assume you can trigger usage of animtools position with a dialogue command? How to do it? Would you mind explaining these two commands above, then giving just some basic tips about animtools usage in dialogue?

I just started to learn how to write these codes, trying to figure it out by myself as much as possible. When I can't solve it personally then I ask for advice here. Thanks in advance!

I was trying to make counter2 automaticaly equal to counter1 (so I don't need raise both counters at the end of every line) but it doesn't worked like that. Never mind anyway, it's very nice as it stands!

Here are another two questions I would like to ask.

1.) Is this possible to raise value of counter by variable or pre-defined value?

Let's say at the top of dialogue I let user adjust amount of bonus points granted for some special, more spicy lines. Shortcuts stands for small bonus, medium bonus, large bonus. Here's the field:

BONUS POINTS SETTINGS

sb:2

mb:5

lb:10

sb:2

mb:5

lb:10

Then I try to execute that in dialogue:

works - regular raise

held:"This is regular line! Now value1 is *counter* and value2 is *counter2* Enjoy standard 20 units!" {"set":{"counter":"+20","counter2":"+20"}}

doesn't work - summoning particular line

held:"This is line with bonus! Now value1 is *counter* and value2 is *counter2* . Just granted regular 20 units and a small bonus!" {"set":{"counter":"+20+[sb]","counter2":"+20+[sb]"}}

doesn't work - summoning particular variable

held:"This is line with bonus! Now value1 is *counter* and value2 is *counter2* . Just granted regular 20 units and a medium bonus!" {"set":{"counter":"+20+*mb*","counter2":"+20+*mb*"}}

held:"That's the line to show that above two methods failed. Unfortunately value1 is *counter* and value2 is *counter2*"

Last line shows that this code won't do maths as I expected, but will simply replace a number with the text (in this case with +20+[sb] or with +20+*mb*). Is it possible to write code doing simple maths? I'd like to have calculations (mostly addition and subtraction) with two variables/values/lines/whatever, lets say *X* and *Y* or as meant above *regular* and *bonus*, with possibility to adjust their values at the top of the dialogue. This way I'd be able to change the pace of counters' rising (therefore how fast specific events are triggered), with changing just few numbers at the top of the document. Is that possible, or "set" command can't do any calculations?

2.) I'm curious about that part:

"atv_position":"==2","animtools":38

I've seen animtools in action, I have them somewhere here and they are fun! I assume you can trigger usage of animtools position with a dialogue command? How to do it? Would you mind explaining these two commands above, then giving just some basic tips about animtools usage in dialogue?

I just started to learn how to write these codes, trying to figure it out by myself as much as possible. When I can't solve it personally then I ask for advice here. Thanks in advance!

Go to Pim_gd's Advanced Dialogue Guide or something like that. Should be the next stickied thread here. Everything you're asking about is explained in there, including variable arithmetic.