do booleans replace each other?

QbAnYtOQbAnYtO Member Posts: 523
edited November -1 in Working with GS (Mac)
say i have two weapons a gun and a shotgun.

i created a boolean that says shotgun and one that say gun.
if my characters picks up a shotgun it changes the shotgun attribute to "yes"
but if he walks over to the gun and picks it up and i have it change the gun attribute to "yes" does the shotgun change to no? or should i put it the "gun" event to change gun attribute to yes AND change shotgun attribute to no?

for that matter should i just use text attribute? i love text attribute and how it works. maybe if i put

"when gun if picked up-change text attribute "weapon" to "gun"-
"if "weapon" attribute is "gun" and "space" key is pressed- then shoot "gun" bullets?

Comments

  • QbAnYtOQbAnYtO Member Posts: 523
    Hmm. Interesting.. It seems to work the same as text only with numbers. Am I wrong? Might be an easier approach since I'm typing in numbers instead of words. U know I never use Boolean? I prefer integers or text :p but thats just me lol I guess it's bcuz I can control multiple thing with numbers and words than just yes or no. Thanks I'll give this a try
Sign In or Register to comment.