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.
User avatar
LECZ
 
Posts: 125
Joined: 11 Jun 2021, 21:13

Re: I need help with a small command

Postby HallowedTux » 12 May 2022, 21:36

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);
HallowedTux
 
Posts: 58
Joined: 27 Mar 2022, 19:43

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"
User avatar
LECZ
 
Posts: 125
Joined: 11 Jun 2021, 21:13

Re: I need help with a small command

Postby HallowedTux » 14 May 2022, 18:52

OOF
HallowedTux
 
Posts: 58
Joined: 27 Mar 2022, 19:43

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 114 times
User avatar
LECZ
 
Posts: 125
Joined: 11 Jun 2021, 21:13

No earth-flower sign

Postby Z-man » 14 May 2022, 21:20

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
I have YouTube channel, see [url][https://www.youtube.com/channel/UCAXWz3m-LE24JykY9WVKxKA/url]
User avatar
Z-man
 
Posts: 73
Joined: 08 May 2022, 02:02

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
User avatar
LECZ
 
Posts: 125
Joined: 11 Jun 2021, 21:13

Re: I need help with a small command

Postby Z-man » Today, 02:16

Thanks! :cool:
I have YouTube channel, see [url][https://www.youtube.com/channel/UCAXWz3m-LE24JykY9WVKxKA/url]
User avatar
Z-man
 
Posts: 73
Joined: 08 May 2022, 02:02

Who is online

Users browsing this forum: No registered users and 1 guest

cron