Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi , newbie coder here, how do you only make the phone show select messages, for example i have an if statement that triggers says message 1 and 5 but it also shows the messages in between .

hope that makes sense, this was an amazing asset and thanks

you can NOT show a message out of sequence from the list 

i.e. you can NOT show #1 then #5, you would have to show #1-5 

or re-organize the list

ok thanks i had hoped there was a way with .pop or remove but no such joy .

thanks for the quick reply

I don't have anything set in place to do, but you can do it manually like this

$ girl1_message.pop(0)   # that would remove the first message in the list for girl1

if you do, keep in mind that since you removed the first message number (0) zero, now message (1) one is the new message (0) zero

it shifts everything below it to fill in the empty space and it can NOT be reversed or put back (the message is burned forever (unless you restart the game)), good way to gaslight your character i guess

Thanks i did try that before but i then run into an empty list error attempting a work around .

amazing  coding btw and thanks for showing what it all does.

yes the list must have something in it before you pop it. (and being python zero (0) is the first entry and number 1 is the second.

as long as you follow the format $ nameOfTheList.pop(entryNumber)

I can't take all the credit Cr8tiveM3dia did some of the coding to.