Custom prop weirdness

Brian Yennie briany at qldlearning.com
Fri Jun 17 06:33:45 EDT 2005


Xavier,

It also works in a test button, and still yet if I declare a global 
elsewhere with the same name as the local array.
I don't see how this is anything other than an error in your script 
somewhere... am I missing something?

In what way is the engine confused?

> Thanks Brian,
>
> like i did say, it works in the message
> Not in the script... i didn't mention i had a global "bot" already...
>
> engine confusion which shouldn't happen... TAOO's semantic symbiosic (a
> sub-subject in dynamic scripting) is now on the freeze pending further
> testing!
>
> cheers
> Xavier
>
>> -----Original Message-----
>> From: Brian Yennie [mailto:briany at qldlearning.com]
>> Sent: Friday, June 17, 2005 12:04
>> To: x at monsieurx.com; How to use Revolution
>> Subject: Re: Custom prop weirdness
>>
>> Xavier,
>>
>> This works here in the message box:
>>
>> put "myprop" into x["name"]
>> put "mypropvalue" into x["value"]
>> set the x["name"] of this stack to x["value"] put the myprop
>> of this stack  ## displays "mypropvalue"
>>
>> Sounds like an error in your script elsewhere...
>>
>>> ok, im working on this bot war concept... Here's a peek...
>>>
>>> This is driving me nuts!!!
>>> I got everything going except transcript which wont cooperate...
>>>
>>>    create button bot[x,"name"] in grp "arena"
>>>     put it into thebot
>>>     put word 3 of it into btnid
>>>
>>>     set the bot["script"] of thebot to bot[x,"botscript"]
>>>     -- no error and no bot custom prop nothing happens
>>>
>>>     set the bot["script"] of btn id btnid to bot[x,"botscript"]
>>>     -- no error and no bot custom prop nothing happens
>>>
>>>     set the botscript of btn id btnid to bot[x,"botscript"]
>>>     -- THIS WORKS!
>>>
>>>
>>> BUT if i do this in the message bot
>>>
>>>   set the bot["script"] of btn id 1551 to "hello"
>>>
>>> it works! i get what i want...
>>>
>>> WTF is wrong with the line :
>>>
>>>   set the bot["script"] of btn id btnid to bot[x,"botscript"]
>>>
>>> ?
>>>
>>> The array contains a script text, the button id and the
>> button exist
>>> and are valid. There are no reverrors, debugging info - "seems"
>>> reliable...
>>>
>>> Can anyone explain where the error is?
>>>
>>> --
>>>
>>> The game is coming along really nicely! I got the game nearly ready
>>> except for the botscript parser to come... Works perfectly
>> except for
>>> this unexplainable crap...
>>>
>>> Next in line, threaded botScript executions ;)
>>>
>>> cheers
>>> Xavier
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



More information about the use-livecode mailing list