Knyghtmare's WML problems
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
- Lord-Knightmare
- Discord Moderator
- Posts: 2364
- Joined: May 24th, 2010, 5:26 pm
- Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
- Contact:
Re: Knyghtmare's WML problems
It's working! Thank you, senpai!Well there's another quote of the wrong type, two lines above that one.
Next Problem:
Rotate Area Lua
Although it works like it's supposed to, there one critical flaw here. It causes complete corruption of save files (as well as autosaves) at very instance one is activated.
This renders save files useless and gives player just one chance to finish the scenario without having to reload from start.
The cause of this bug is most likely obsolete code since all the files were copy-pasted from The Devil's Flute in the 1.9 server.
I have little to no knowledge of Lua coding, so anyone know what I can do to fix this?
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
- Lord-Knightmare
- Discord Moderator
- Posts: 2364
- Joined: May 24th, 2010, 5:26 pm
- Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
- Contact:
Re: Knyghtmare's WML problems
Has something gone terribly wrong with the ForEach tag in 1.12 and later releases? A previously functional code does not seem to be working anymore.
Code: Select all
[store_unit]
[filter]
side=1
race="elemental"
[/filter]
kill=yes
variable="stored_elementals"
[/store_unit]
{FOREACH stored_elementals i}
{VARIABLE stored_elementals[$i].side 10}
[unstore_unit]
variable=stored_elementals[$i]
[/unstore_unit]
[recall]
id=$stored_elementals[$i].id
x,y=26,50
show=no
[/recall]
{NEXT i}
{CLEAR_VARIABLE stored_elementals}
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium