Android Question user-editable inline script in App

Cadenzo

Active Member
Licensed User
Longtime User
I am writing a kind of roll game or text adventure and the characters should be editable.So I need my own simple script with such as if-than statements and getting/setting variables. It should be a text-script, which the app can download from the server. Do you have any good ideas, what I could use for that, not to start by zero?
 

Cadenzo

Active Member
Licensed User
Longtime User
I read now a lot about WebExtras and ExecuteJavaScript, but I am not sure, it gives me the necessary control. I hope, this example shows, what I need:

B4X:
'for this b4a objects we need read and write access from a script
    Dim map_Props As Map
    Dim list_answers As ListView
     ----------------------------
    'the following should be on a editable script-side, because everything should be completely flexible
    If map_Props.Get("counter") >= 15 Then map_Props.Put("status") = 1
    If map_Props.Get("arrived") = True Then list_answers.AddSingleLine2(map_Props.Get("place"), map_Props.Get("placeID")
 
Upvote 0

Cadenzo

Active Member
Licensed User
Longtime User
Thanks Erel, in the given case I now decided to implement my own small script-analyzer, but this library by agraham looks great and is ideal for many other ideas.
 
Upvote 0
Top