Create account / Log in

Does not Equal!

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Does not Equal!

Postby reddeblu » September 18th, 2012, 9:42 pm

I'm trying to get the name of a piece and compare it to a simple string, but for the life of me I cannot get it to work!

This is what I'm attempting:
BasicName != name here

This is what I've tried:
BasicName != name here
BasicName =! name here
$BasicName$ != name here
$BasicName$ =! name here

None of these are working and I'm stumped, any idea of what I'm doing wrong?

Edit: The Does not Equal expression appears to be working in other parts of the code, just not with the BasicName. Can BasicName be compared with it?
- Model: Custom Build
- Operating System: Windows XP
- CPU: 3GHz
- Memory: 2 GB
- Video Card: NVIDIA GeForce GTS 250
- Vassal version: 3.2.10
- Java: Version 7 Update 51
reddeblu
 
Posts: 112
Joined: March 25th, 2011, 3:24 am

Re: Does not Equal!

Postby shadowagl » September 19th, 2012, 2:29 am

what version of VASSAL are you using?
In my 1.19, BasicName != name here worked well.
I wrote it in Trigger Action, no "$" needed.
Whether the BasicName is "name" or "name here"?
In my module, blank is supported too.
shadowagl
 
Posts: 25
Joined: May 18th, 2012, 7:26 am

Re: Does not Equal!

Postby reddeblu » September 19th, 2012, 4:13 am

Hm strange, I'm using 1.20 but I can't recall it working for me previously in 1.19. Maybe I just fudged it up somewhere, thanks for the response suppose I'll take a few more wacks at it.
- Model: Custom Build
- Operating System: Windows XP
- CPU: 3GHz
- Memory: 2 GB
- Video Card: NVIDIA GeForce GTS 250
- Vassal version: 3.2.10
- Java: Version 7 Update 51
reddeblu
 
Posts: 112
Joined: March 25th, 2011, 3:24 am


Return to Module Design

Who is online

Users browsing this forum: No registered users and 3 guests

cron