K und D Posted April 23, 2008 Share Posted April 23, 2008 (edited) When you add a script to an event, for example "When the player enters a zone", the event will become bold and show the number of scripts it contains. This looks something like this: When the player enters a zone (1) If you then go and delete all of the scripts from the event, it will still be bold and look like this: When the player enters a zone (0) If you then save the cartridge and exit the builder, the next time you load the cartridge it will look like this again: When the player enters a zone (1) and the event viewer will contain an empty script. See also screenshot for visualisation. Edited April 23, 2008 by Karin & Dominik Quote Link to comment
Ranger Fox Posted April 23, 2008 Share Posted April 23, 2008 I wonder if the comment isn't deleted for the event and this causes the problem? What does it look like in the code for the event? Quote Link to comment
K und D Posted April 24, 2008 Author Share Posted April 24, 2008 I wonder if the comment isn't deleted for the event and this causes the problem? What does it look like in the code for the event? Just to clarify: I did delete the comment and all of the scripts from the event, leaving it perfectly blank and empty. The event then looked like this: When the player enters a zone (0) After saving the cartridge and reloading it into the builder, it looked exactly like on the screenshot I posted earlier, ie the event comment was back and it read: When the player enters a zone (1) Meaning that the event comment was automagically put into the event all by itself when it should have been empty. This behaves the same for all of the zone, item, character and whatnot events, btw. Anyone able to reproduce this? Quote Link to comment
+davidloew Posted April 24, 2008 Share Posted April 24, 2008 I wonder if the comment isn't deleted for the event and this causes the problem? What does it look like in the code for the event? Just to clarify: I did delete the comment and all of the scripts from the event, leaving it perfectly blank and empty. The event then looked like this: When the player enters a zone (0) After saving the cartridge and reloading it into the builder, it looked exactly like on the screenshot I posted earlier, ie the event comment was back and it read: When the player enters a zone (1) Meaning that the event comment was automagically put into the event all by itself when it should have been empty. This behaves the same for all of the zone, item, character and whatnot events, btw. Anyone able to reproduce this? I'll log this as a bug and get it fixed. David. Quote Link to comment
+davidloew Posted April 24, 2008 Share Posted April 24, 2008 I wonder if the comment isn't deleted for the event and this causes the problem? What does it look like in the code for the event? Just to clarify: I did delete the comment and all of the scripts from the event, leaving it perfectly blank and empty. The event then looked like this: When the player enters a zone (0) After saving the cartridge and reloading it into the builder, it looked exactly like on the screenshot I posted earlier, ie the event comment was back and it read: When the player enters a zone (1) Meaning that the event comment was automagically put into the event all by itself when it should have been empty. This behaves the same for all of the zone, item, character and whatnot events, btw. Anyone able to reproduce this? I'll log this as a bug and get it fixed. David. Just to clarify, looks like the delete was done editing the cartridge directly. When you delete the script lines and not the event (function) in the lua directly, the builder will pick this back up and add the comment to it. Sort of like holding the event open. If you do this in the builder, delete script from the object list will delete the function and all of the script. So, to get around this, you would delete the whole function block so that the event wouldn't show up in the builder. David Quote Link to comment
Recommended Posts
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.