|
ronfar_74@hotmail.com Beginner
Joined: 30 Aug 2006 Posts: 10
|
Posted: Fri Apr 17, 2015 2:27 pm
Variable equallity |
Hello, could anyone tell me if its possible to make this work with part of a variable string?
#IF (%gmcp.room.info.flags = "safe") {$color="White"}
The problem is sometimes %gmcp,room.info.flags returns something along the lines of.... safe, indoors, no-npcs making the above not be true. |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Fri Apr 17, 2015 9:33 pm |
Use the %pos function:
Code: |
#IF (%pos("safe", %gmcp.room.info.flags)) .... |
|
|
|
|
ronfar_74@hotmail.com Beginner
Joined: 30 Aug 2006 Posts: 10
|
Posted: Sat Apr 18, 2015 2:17 pm |
thanks! got it working.
|
|
|
|
|
|