#why does this not work?

1 messages · Page 1 of 1 (latest)

glacial frigate
#
    set {CorruptedGoblin} to a zombie
    set {Name::CorruptedGoblin}'s name to "&d&lCorrupted Goblin"
    set {Gear::CorruptedGoblin}'s helmet to ("CorruptedKnight" parsed as an offline player)'s skull
    set {Gear::CorruptedGoblin}'s chestplate to iron chestplate
    set {Gear::CorruptedGoblin}'s leggings to leather leggings
    set {Gear::CorruptedGoblin}'s boots to leather boots
    set {Gear::CorruptedGoblin}'s tool to blaze rod
    set {Gear::CorruptedGoblin}'s max health attribute to 1000
    set {Gear::CorruptedGoblin}'s attack damage attribute to 200
    set {Gear::CorruptedGoblin}'s armor attribute to 1000
    set {Gear::CorruptedGoblin}'s health to 1000
    set {Gear::CorruptedGoblin}'s armor toughness attribute to 190
    apply swiftness 1 to {Gear::CorruptedGoblin} for 1 minutes
    set {Counter::CorruptedGoblin} to 1
    set {Kill::CorruptedGoblin} to false
    add -1 to {Counter::CorruptedGoblin}
    spawn 1 of {CorruptedGoblin} at location(-94.5 66, -61.5)
    if {Counter::CorruptedGoblin} is 0:
        kill {CorruptedGoblin}
        stop


every 10 seconds:
    add -1 to {Counter::CorruptedGoblin}
    CorruptedGoblin()```
gusty kraken
#

so

#

you need to elaborate

#

you cant just say 'doesnt work', you need to tell us which part doesnt work

glacial frigate
#

wait i gotta get the error again

gusty kraken
#

also it will just be killed instantly.. set {Counter::CorruptedGoblin} to 1 set {Kill::CorruptedGoblin} to false add -1 to {Counter::CorruptedGoblin}

#

also the stop is useless

#

and you should use local variables there, or just no vars at all

#

(and i would use corruptedgoblin::x)

glacial frigate
#

oh ok

gusty kraken
#

justspawn 1 zombie at {_loc} set {_corruptedgoblin} to last spawned zombie set name of {_corruptedgoblin} to ... set {_corruptedgoblin}'s helmet to ... ...

glacial frigate
#

so thbey will collide

#

and spawn the wrong one

gusty kraken
#

no

#

thats why you set the variabloe

glacial frigate
#
    set {CorruptedGoblin::entity} to a zombie
    set {CorruptedGoblin::Name}'s name to "&d&lCorrupted Goblin"
    set {CorruptedGoblin::Gear}'s helmet to ("CorruptedKnight" parsed as an offline player)'s skull
    set {CorruptedGoblin::Gear}'s chestplate to iron chestplate
    set {CorruptedGoblin::Gear}'s leggings to leather leggings
    set {CorruptedGoblin::Gear}'s boots to leather boots
    set {CorruptedGoblin::Gear}'s tool to blaze rod
    set {CorruptedGoblin::Gear}'s max health attribute to 1000
    set {CorruptedGoblin::Gear}'s attack damage attribute to 200
    set {CorruptedGoblin::Gear}'s armor attribute to 1000
    set {CorruptedGoblin::Gear}'s health to 1000
    set {CorruptedGoblin::Gear}'s armor toughness attribute to 190
    apply swiftness 1 to {CorruptedGoblin::Gear} for 1 minutes
    set {CorruptedGoblin::Counter} to 1
    set {CorruptedGoblin::kill} to false
    spawn {CorruptedGoblin} at location(-90.5, 67, -63.5)
    if {CorruptedGoblin::Counter} is 0:
        kill {CorruptedGoblin}
        stop```
gusty kraken
#

well yeah

#

you never set the tool/armour to the variable...

glacial frigate
#

wait what

#

???

#

i did thought...

#

wdym i didntr

gusty kraken
#

you set a variable, not the actual thing.

#

set {player::tool} to diamond sword and set player's tool to diamond sword are different..

#

now you either change it or set ... to {var::...}