#attacker and victim are disappearing in function

1 messages · Page 1 of 1 (latest)

fallow shore
#

move them around

#

see which line it breaks at

#

right now you know it breaks between breoadcast 1 and broadcast 2

scarlet moat
#
    broadcast "attacker1 %{_attacker}%"
    broadcast "victim1 %{_victim}%"
    set {_attacker-to-victim} to vector between {_attacker} and {_victim} normalized
    broadcast "attacker2 %{_attacker}%"
    broadcast "victim2 %{_victim}%"

    set {_attacker-to-victim} to {_attacker-to-victim} * -0.5
    broadcast "attacker3 %{_attacker}%"
    broadcast "victim3 %{_victim}%"
    set y component of {_attacker-to-victim} to a random number between -0.5 and 0.2
    broadcast "attacker4 %{_attacker}%"
    broadcast "victim4 %{_victim}%"

    if the facing of {_attacker} is north:
        broadcast "attacker5 %{_attacker}%"
        broadcast "victim5 %{_victim}%"
        set x component of {_attacker-to-victim} to a random number between -1 and 1
        broadcast "attacker6 %{_attacker}%"
        broadcast "victim6 %{_victim}%"
    else if the facing of {_attacker} is south:
        broadcast "attacker7 %{_attacker}%"
        broadcast "victim7 %{_victim}%"
        set x component of {_attacker-to-victim} to a random number between -1 and 1
        broadcast "attacker8 %{_attacker}%"
        broadcast "victim8 %{_victim}%"
    else if the facing of {_attacker} is east:
        broadcast "attacker9 %{_attacker}%"
        broadcast "victim9 %{_victim}%"
        set z component of {_attacker-to-victim} to a random number between -1 and 1
        broadcast "attacker10 %{_attacker}%"
        broadcast "victim10 %{_victim}%"
    else if the facing of {_attacker} is west:
        broadcast "attacker11 %{_attacker}%"
        broadcast "victim11 %{_victim}%"
        set z component of {_attacker-to-victim} to a random number between -1 and 1
        broadcast "attacker12 %{_attacker}%"
        broadcast "victim12 %{_victim}%"

    broadcast "attacker 13%{_attacker}%"
    broadcast "victim 13%{_victim}%"```

okay i did this and if im facing south and first i hit with fire aspect and thenburn out
#

its outputting

#

its this line set {_attacker-to-victim} to {_attacker-to-victim} * -0.5
idk why that's breaking

fallow shore
#

probably because you cant multiply vectors