SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 08-28-2017   #1
Yoshirocks90
Wants to make maps again
 
Yoshirocks90's Avatar
Default Checking for Fire Flowers

How do i use lua to check if the player has a fire flower? The closest I can get is checking if the player's color is white and if they have a shield.
__________________
Maybe I'll start modding again?
Yoshirocks90 is offline   Reply With Quote
Old 08-28-2017   #2
742mph
My work is never done yet
 
742mph's Avatar
Default

Use (player.powers[pw_shield] & SH_FIREFLOWER) to check if player has a Fire Flower. Here's the relevant wiki article.
__________________
Quote:
<Evilgasm> the opposite of egoraptor is Toa Tahu
742mph is online now   Reply With Quote
Old 08-28-2017   #3
Yoshirocks90
Wants to make maps again
 
Yoshirocks90's Avatar
Default

Ah, thank you.
__________________
Maybe I'll start modding again?
Yoshirocks90 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.