Hello all,
So I want to print one of three messages when I do a particular action (an action that is not 'take') to an object:
1) [If the object has a "take" attribute of "false" - ie it can't be taken]
- Print "Leave it where it is."
2) [If the object has a "take" attribute of "true" - ie it can be taken]
- Print "Try picking it up."
3) [If the object has a "take" attribute of some sort of scripty thing - ie it's not easy to work out if it can be taken or not]
- Print "Take it or leave it."
When I try to put in
If [object attribute equals] object [myobject] Attribute [take] = false
- Print "Leave it where it is."
Else if [object attribute equals] object [myobject] Attribute [take] = true
- Print "Try picking it up."
Else
- Print "Take it or leave it."
if (myobject.take = false) {
msg ("Leave it where it is.")
}
else if (myobject.take = true) {
msg ("Try picking it up.")
}
else {
msg ("Take it or leave it.")
}
Then I get the in-game error message "Operation 'Equal' is not defined for types 'LazyLoadScript' and 'Boolean'".
That seems a bit odd - why can't I test whether Take is equal to True or not? Or am I just doing it the wrong way?
psymann