 |
Xiija Beginner
Joined: 24 Apr 2018 Posts: 14
|
Posted: Thu Jan 15, 2026 2:28 am
%ismember not working |
| Code: |
#VAR mindstates ("Focused Mind"|"STR"|"Matter Over Mind"|"CON"|"Nimble Pondering"|"DEX"|"Reflexive Thoughts"|"AGI"|"Cerebrum Processing"|"INT"|"Dedicated Visions"|"WIS"|"Charismatic Wonders"|"CHA"|"Lucky Discovery"|"LUCK"|"Muddled Thoughts"|"RAND")
#VAR test "Matter Over Mind"
#VAR idx %ismember( test, mindstates)
#SAY Var: @test - idx: @idx
|
idx keeps showing 0
thanks for any help |
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4794 Location: Pensacola, FL, USA
|
Posted: Thu Jan 15, 2026 1:42 pm |
you need to include the @ symbol to reference your variables inside the function:
%ismember(@test, @mindstates) |
|
|
|
 |
Xiija Beginner
Joined: 24 Apr 2018 Posts: 14
|
Posted: Thu Jan 15, 2026 4:21 pm |
@shalimar
sry, it was brackets, not braces in the list .. zmud script area font is so small i cannot see which is which..
any way to change that? |
|
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4794 Location: Pensacola, FL, USA
|
Posted: Thu Jan 15, 2026 7:26 pm |
there is an option for that in preferences
|
|
|
|
 |
|
|
|