FANDOM


This has been a problem for a long time now, and I desperately need to know how to fix it. What I'm trying to do is program Scout to say his Soldier domination quotes when he beats him. Here's the code:

[State 220]
type = VarRandom
trigger1 = animelem = 1 & p2name != "Soldier" & p2name != "Pyro" & p2name != "Demoman" & p2name != "Heavy Weapons Guy" & p2name != "Engineer" & p2name != "Medic" & p2name != "Sniper" &  p2name != "Spy"
V = 4
Range = 1, 20
; If Scout defeats a player that isn't one of the 8 other classes, set random variable.
[State 220]
type = VarRandom
trigger1 = animelem = 1 & p2name = "Soldier"
V = 4
Range = 0, 5
; If Scout defeats the Soldier, set random variable to this instead.
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 4 & p2name != "Soldier" & p2name != "Pyro" & p2name != "Demoman" & p2name != "Heavy Weapons Guy" & p2name != "Engineer" & p2name != "Medic" & p2name != "Sniper" & p2name != "Spy"
value = S182,Var(4)
; Play Scout's regular domination quotes if he's not against any of the 8 other classes.
[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 4 & p2name = "Soldier"
value = S183,Var(4)
; Play Scout's Soldier domination quotes instead if he's against the Soldier.

The problem is, even if the Scout beats the Soldier, only his regular domination quotes are played. Is there something I did wrong in the code? Please let me know. If I can't fix this problem, I can't complete any of my projects... 

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.