Hi. I'm spanish guy, so sorry my bad english. But I think this piece of code work with your problem of more than 3 objects in intentory:
You must put the code in "run script" for every object you wish take:
Change the contents of numeric variable "number_objects" to "0"
For each object in "inventory" Increment "number_objects" by "1"
If "%number_objects%" is equal to "3" Then Print "You can't take more objects.[NEW LINE]" Else {
Print "You take the object"
Give "#quest.lastobject#" to the player }
I hope work for you.