You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code creates an instance of omod while in a with block on omain while in a catspeak function call. The code prints omod (correct) and then omain (???), because it is using the with block's self instead of the setSelf self.
Objects: oninital and omain are placed into a starting room oinitial create Event:
Catspeak.interface.exposeEverythingIDontCareIfModdersCanEditUsersSaveFilesJustLetMeDoThis = true;
var f = Catspeak.compile(Catspeak.parseString("with omain { instance_create_depth(0, 0,0, omod) }"))
f.setSelf(self)
f()
omod create Event:
show_message(object_get_name(self.object_index))
var f = Catspeak.compile(Catspeak.parseString("show_message(object_get_name(self.object_index))"))
f.setSelf(self)
f()
omain is an empty game object.
The text was updated successfully, but these errors were encountered:
What version of Catspeak are you using?
unstable (
main
)What happened?
The following code creates an instance of
omod
while in awith
block onomain
while in a catspeak function call. The code printsomod
(correct) and thenomain
(???), because it is using thewith
block's self instead of thesetSelf
self.Objects:
oninital
andomain
are placed into a starting roomoinitial
create Event:omod
create Event:omain
is an empty game object.The text was updated successfully, but these errors were encountered: