Page 1 of 1

I need help with a small command

PostPosted: 03 May 2022, 18:48
by LECZ
:oops: is this where is the error?

the output tells me that "get_bonus" does not exist

/////////→ Comand ←////////////

if(sector.Tux.get_bonus("earthflower"){
Tux.kill(false)
}

Re: I need help with a small command

PostPosted: 14 May 2022, 05:50
by LECZ
HallowedTux {l Wrote}:I think whats wrong is maybe you can actually do something different than what you just did .
If you do this correctly, i strongly suggest you can do this:

add_bonus(“<Any powerup>”);
Tux.kill(true);


The first command is wrong:
Tux.bonus_add("Any powerup")

apart what I want is that if Tux has the power up of "earthflower" it causes him damage that is why there is the "if"

I already tried everything that happened:

Tux.get_powerup() == "earthflower"
Tux.get() == "earthflower"
Tux.get_bonus() == "earthflower"
get.Tux_bonus() == "earthflower"

Re: I need help with a small command

PostPosted: 14 May 2022, 21:07
by LECZ
To give you an idea of ​​what I more or less want to do :oops: :

Re: No earth-flower sign

PostPosted: 18 May 2022, 06:05
by LECZ
Z-man {l Wrote}:
LECZ {l Wrote}:To give you an idea of ​​what I more or less want to do :oops: :


Nice Sign, LECZ! I want to use it for a tile-set! :D

it's okay

Re: I need help with a small command

PostPosted: 26 Jun 2023, 13:34
by STV
Tux.get_bonus("fireflower"); should work :)