mob/verb
intangible()
density = 0
if(density = 0)
density = 1
Problem description:I am really new to coding. I haven't coded anything original, haven't finished the DM Guide (I'm currently at chapter 6) and I believe I just don't grasp this. With my current understanding I think I should be able to make a verb that toggles a num value via if statements (maybe I just don't understand if statements) but I have not come to any conclusions on to how to do this. I've attempted a few things, all have been errors or things that cleared, but resulted in nothing happening.
I'm currently trying to make the intangible() verb a toggle, where if clicked while density is 0 it will restore density to 1 and if density is 0 it will make 0