Can't get 'Switch' to work

Kieron_59
25 Aug 2012, 18:13
I'm trying to create a command that display the physical description of the player, I'm using a 'Switch' script command to change a
string attribute called 'player.extra_desc' based on string 'player.species'. The error I get is:

Error running script: Unknown object or variable 'human' .

When I change 'player.species' to an Object type and create a 'human' object I get the same error saying that the new desc: "tall" is an unknown object or variable. I made a walkthrough, and here's the file.


Pertex
25 Aug 2012, 19:01
Yes, you mixed strings and objects. Here is the fixed file:

Kieron_59
25 Aug 2012, 19:31
That was quick, thank you.