i think it would be simpler to just use numbers
[quote:3235mgqm]weapon = 0
you know for yourself, and in your comments which number corresponds to which weapon
[quote:3235mgqm]on player pressed Change Weapon
add 1 to player('weapon')
if player ('weapon') is greater than the highest number you have defined
player('weapon') = 0
so it'll loop around to the first weapon...much cleaner and easier to maintain. just two little events that won't change no matter how many weapons you add
I think just using numbers and comments is fine, you can copy paste a little comment chart or the relevant parts wherever you need it, like here's your comment block for the event that increments:
remember this is just a comment field that does nothing except let you read it and remember
[quote:3235mgqm]0=pistol
1=shotgun
2=chainsaw
3=friendship ray
then on the event where you have
if player('weapon')==1 or whatever
you can have a little comment that just says
[quote:3235mgqm]1=shotgun
if you're against comments like that for whatever
make a bunch of global variables
one called shotgun with the default 1
one called chainsaw with the default 2
etc
and just never change those variables, so they'll be constant
then your events won't need comments because they'll look like this:
[quote:3235mgqm]if player('weapon') == global('shotgun')