Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Writing from one .lua-script into another?
Started by xazvre Mar 24 2019 10:52 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

xazvre

[GLOBAL: userInfoPane.html]
xazvre
  • Observer

  • 1 posts
  • Corona SDK

Hello folks,

 

a little beginner question here.

Is it possible to have one function of one lua script write into an other lua script?
(the other lua script should save the changes)

Smth like

if (this happens)

 then (write THAT in .lua-script2)

end

I really want that this isnt temporary. I need lua-script2 to be permanently changed as long as another function is not activated.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,801 posts
  • Enterprise

Welcome to our Community Forums.

 

You can have lua files to talk to each other however you can't have Corona re-write code after it's compiled. What you can do is save information and use that information with existing code to cause your code to have the behavior that you want.

 

Rob




[topic_controls]
[/topic_controls]