Jump to content

if then else / input / varible


Bisaci

Recommended Posts

OK sorry if this was solved somewhere here, but i didnt findt it

 

Have a problem when I want set reaction for players input multiple chois. What I do is

 

<if variable "name" equal "string">

<show message "message 1">

<else>

<do smthg other or do nthg>

<end>

 

THIS i save and proof in emulator - it works nice. Than I reload lua file, work on it and then save again. Now I cannot genrate cartridge file (msg like there is no "END"), more I cannot reload saved file(the same message). OK - I tested what happens and see this - when I reload saved file, then disappears "IF" and "END" and it cause this failure. BUT it is only when i use it in "input" script.. After the file is reloaded looks like

 

<show message "message 1">

<else>

<do smthg other or do nthg>

 

Am I mistaken somwhere, or is it BUG?

 

I solve that problem this way. I add this scripts before the last save. It works good, but when i want smthg change in my cartridge i must manually delete all mentioned scripts and write it again...

Link to comment

OK sorry if this was solved somewhere here, but i didnt findt it

 

Have a problem when I want set reaction for players input multiple chois. What I do is

 

<if variable "name" equal "string">

<show message "message 1">

<else>

<do smthg other or do nthg>

<end>

 

THIS i save and proof in emulator - it works nice. Than I reload lua file, work on it and then save again. Now I cannot genrate cartridge file (msg like there is no "END"), more I cannot reload saved file(the same message). OK - I tested what happens and see this - when I reload saved file, then disappears "IF" and "END" and it cause this failure. BUT it is only when i use it in "input" script.. After the file is reloaded looks like

 

<show message "message 1">

<else>

<do smthg other or do nthg>

 

Am I mistaken somwhere, or is it BUG?

 

I solve that problem this way. I add this scripts before the last save. It works good, but when i want smthg change in my cartridge i must manually delete all mentioned scripts and write it again...

can you tell me exactly what's in the if statement (variable name and string value)? We have had problems with variable naming and parsing, but, I think this has been cleared up with the latest builder. Also, make sure you have the latest builder installed.

 

David.

Link to comment

1) i have a new version of builder , dvonloaded 15.03.08

2) thanx , i will try to reset regional settings

3)

variable name " playerinput_script_krizovatka"

string value "Jezisimarija nestalo se Vam nic?"

Hello,

Thanks for the information, I did find a bug with parsing variable names that contain underscores. For now, as a workaround, please remove the underscrores in the variable name. Go into the Lua Script and rename the variable. This will work until I post a fix to the parsing.

 

Thanks,

David

Edited by davidloew
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...