Object Not Reading Other Object's Variables
#1
Posted 10 July 2007 - 01:05 AM
#2
Posted 10 July 2007 - 01:09 AM
Edited by manyquestions, 10 July 2007 - 01:09 AM.
#3
Posted 10 July 2007 - 01:11 AM
#4
Posted 10 July 2007 - 01:14 AM
More details on your game would help
#5
Posted 10 July 2007 - 01:19 AM
2. you mean like "object.variable" in
3. I just put the 2 variables in order, AND
#6
Posted 10 July 2007 - 01:27 AM
#7
Posted 10 July 2007 - 01:32 AM
Yes, and it returns the same bloody error! "OBJ_B.VARIABLE IS NOT A VARIABLE NAME... VARIABLE NAME EXPECTED!!!" don't contradict this again people!If you set "applies to:" to any object other than self, that's the object that will make the change. If obj_a is the one executing the action and it's trying to read obj_b's variable but you want obj_a to make the change depending on b's variable, you need to set "applies to:" to self and shange the "variable" field to obj_b.variable. You'll need to chage the word variable to whatever the exact bariable's name is that you're trying to read.
#8
Posted 10 July 2007 - 01:37 AM
Are you using a non-built in local variable? If so, you'll need to initiate it in the create event of obj_b by putting variable=0.
#9
Posted 10 July 2007 - 01:39 AM
1. Make it a global variable (yes this does work for D&D). Type in "global.<variable>", and use that for both.
2. Up at the top, Unselect "Self" and go to "Other," and choose the other object that you want from the dropdown.
I hope that helps!
#10
Posted 10 July 2007 - 01:42 AM
#11
Posted 10 July 2007 - 01:44 AM
Ya... that was obvious in the first post, I'm not a noob here.There are two things that I can think of:
1. Make it a global variable (yes this does work for D&D). Type in "global.<variable>", and use that for both.
2. Up at the top, Unselect "Self" and go to "Other," and choose the other object that you want from the dropdown.
I hope that helps!
But if I set it to the object I'm trying to fix, it'll give me those errors again.
Edited by airikita, 10 July 2007 - 01:45 AM.
#12
Posted 10 July 2007 - 01:44 AM
#14
Posted 10 July 2007 - 01:46 AM
#15
Posted 10 July 2007 - 01:51 AM
#16
Posted 10 July 2007 - 01:53 AM
#17
Posted 10 July 2007 - 01:56 AM
c'mon, be more specific.. I have no idea what they did to GM7 here!
#18
Posted 10 July 2007 - 02:13 AM
#19
Posted 10 July 2007 - 02:20 AM
Edited by airikita, 10 July 2007 - 02:21 AM.
#20
Posted 10 July 2007 - 02:21 AM
Could you explain it again I'm not sure I understand.
Edited by Nuble, 10 July 2007 - 02:22 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











