How do you multiply a global variable by another?

I’m trying to create a script where every round increases it multiplies how many kills you have to do, but I’m not sure on whether this is possible. If it is would you please instruct me?

Modify Global Variable, and set the operation to multiply. Then put in the number you want to multiply it by.

rule("Multiply")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Game In Progress == True;
	}

	actions
	{
		Modify Global Variable(A, Multiply, Global Variable(B));
	}
}
1 Like

@Blujay 's answer is good.

Here is another way if you feel like taking the scenic route.

Set Global Variable(A, Multiply(Global Variable(A), Global Variable(B)));

Kinda weird though, seeing that there is a more compact one right next to it.

The modify variable version works with A = A * B, while the set variable version works also with A = B * C.

2 Likes

Thank you to all people for having the time to help me but I realized It wasn’t that my multiplying variables was the problem it was the actual variables weren’t numbered properly to fit the function.