I need help with a small command

I need help with a small command

Postby LECZ » 03 May 2022, 18:48

: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)
}
Last edited by LECZ on 14 May 2022, 05:52, edited 1 time in total.
Creating levels is fascinating
User avatar
LECZ
 
Posts: 145
Joined: 11 Jun 2021, 21:13

Re: I need help with a small command

Postby LECZ » 14 May 2022, 05:50

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"
Creating levels is fascinating
User avatar
LECZ
 
Posts: 145
Joined: 11 Jun 2021, 21:13

Re: I need help with a small command

Postby LECZ » 14 May 2022, 21:07

To give you an idea of ​​what I more or less want to do :oops: :
Attachments
sign-noEarthFlower.png
sign-noEarthFlower.png (6.22 KiB) Viewed 2729 times
Creating levels is fascinating
User avatar
LECZ
 
Posts: 145
Joined: 11 Jun 2021, 21:13

Re: No earth-flower sign

Postby LECZ » 18 May 2022, 06:05

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
Creating levels is fascinating
User avatar
LECZ
 
Posts: 145
Joined: 11 Jun 2021, 21:13

Re: I need help with a small command

Postby STV » 26 Jun 2023, 13:34

Tux.get_bonus("fireflower"); should work :)
STV
 
Posts: 2
Joined: 09 Jun 2023, 08:27

Who is online

Users browsing this forum: No registered users and 1 guest