Im a newb so pls help me to do this, soldier sprinting speed

I’m trying to make soldiers sprint fast, only when sprinting, this is what i have now

rule(“Rule 2”)
{
event
{
Ongoing - Each Player;
All;
Soldier: 76;
}

conditions
{
	Is Using Ability 1(Event Player) == False;
	Is Using Ability 1(Event Player) == True;
}

actions
{
	Set Move Speed(Event Player, 150);
	Set Move Speed(Event Player, 100);
}

}

im super new, so what am i doing wrong?

For example, you can make two separate rules instead. One rule with condition true and move speed 150, and the other rule with condition false and move speed 100.
Now you wrote that the condition should be both true and false at the same time, which is not possible.

1 Like

hmm, i hope there is like a in-depth tutorial, because i really want to learn this stuff, let me fiddle around with nit

Edit: THANK YOU

rule(“Normal soldier speed fast run”)
{
event
{
Ongoing - Each Player;
All;
Soldier: 76;
}

conditions
{
	Is Using Ability 1(Event Player) == True;
}

actions
{
	Set Move Speed(Event Player, 150);
}

}

rule(“normal soldier speed”)
{
event
{
Ongoing - Each Player;
All;
Soldier: 76;
}

conditions
{
	Is Using Ability 1(Event Player) == False;
}

actions
{
	Set Move Speed(Event Player, 100);
}

}

1 Like

well you can always use the Wait Until action. such as,




rule(“Soldier: 76 Sprint Speed”)
{
event
{
Ongoing - Each Player;
All;
Soldier: 76;
}

conditions
{
	Is Using Ability 1(Event Player) == True;
}

actions
{
	Set Move Speed(Event Player, 150);
	Wait Until(!Is Using Ability 1(Event Player), 99999);
	Set Move Speed(Event Player, 100);
}

}




(fyi the “!” thing is a Not command. put Not right after you select Wait Until).

2 Likes