Blueknights Questions
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.
Re: Blueknights Questions
{PLACE_IMAGE PATH X Y}
?That's the same but without flashing.
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
-
- Posts: 252
- Joined: March 30th, 2011, 8:38 pm
- Location: The UK
Re: Blueknights Questions
Thank you, i guess i should of realized that but couldn't see it in plain sight.
What is the name ofthe evnt for a new turn?
Is it new turn?
Also is anything wrong with this coding because if my unit moves at all the game moves on to the next scenario which it shouldn't.
What is the name ofthe evnt for a new turn?
Is it new turn?
Also is anything wrong with this coding because if my unit moves at all the game moves on to the next scenario which it shouldn't.
- Attachments
-
worldmap.cfg
- (2.99 KiB) Downloaded 158 times
Re: Blueknights Questions
For the first question, see here for a list.
For the second, x,y is not a valid key for [event]. You want a [filter].
For the second, x,y is not a valid key for [event]. You want a [filter].
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
-
- Posts: 252
- Joined: March 30th, 2011, 8:38 pm
- Location: The UK
Re: Blueknights Questions
What i'm attempting to do to make my 'world map' feature work is the following.
in a 'sub scenario' (One that you acsess through the world map) I have the folowing code. (Copied from Era of Magic's To lands unknown.)
Later followed by
and in a different the world map I have this
What i'd like to know is, is what i'm trtying to accomplish possible? if so how? because this isn't working.
in a 'sub scenario' (One that you acsess through the world map) I have the folowing code. (Copied from Era of Magic's To lands unknown.)
Code: Select all
[event]
name=start
{VARIABLE bcounter 0}
[/event]
Code: Select all
[event]
name=last breath
[filter]
id=evil
[/filter]
[message]
protag=Victory!
[/message]
{VARIABLE_OP bcounter add 1}
[endlevel]
result=victory
[/endlevel]
[/event]
Code: Select all
[if]
[variable]
name=bcounter
equals=1
[/variable]
[then]
{MODIFY_TERRAIN ^Dr 16 26}
{CLEAR_VARIABLE bcounter}
[redraw]
[/redraw]
[/then]
[/if]
[/event]
Re: Blueknights Questions
Yeah, that's possible. But this
doesn't work for sure because you somehow merged the two needed keys. It'd beCode: Select all
[message] protag=Victory! [/message]
Code: Select all
speaker=protag
message= _ "Victory"
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
-
- Posts: 252
- Joined: March 30th, 2011, 8:38 pm
- Location: The UK
Re: Blueknights Questions
Oh dear not concentrating while writing that obviously...
So should what I have work once that's corrected?
So should what I have work once that's corrected?
Re: Blueknights Questions
Yes, if you do it right. No, if you do it wrong.blueknight1758 wrote:Oh dear not concentrating while writing that obviously...
So should what I have work once that's corrected?
Anyone who gives you a definitive "yes" or "no" is merely guessing.
-
- Posts: 252
- Joined: March 30th, 2011, 8:38 pm
- Location: The UK
Re: Blueknights Questions
Well to help me be able to code this can someone answer these questions?
1. Do variable unless cleared carry over from scenario to scenario?
2. If not is their an alternative that does?
1. Do variable unless cleared carry over from scenario to scenario?
2. If not is their an alternative that does?
Re: Blueknights Questions
Yes.
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
-
- Posts: 252
- Joined: March 30th, 2011, 8:38 pm
- Location: The UK
Re: Blueknights Questions
So if my code like above is in a 'new turn' [if] clause stating that if 'bcounter' =1 hex x=16 and y=26 will become rubble, would that be feasible?
Because try if I might the terrain at 16,26 just doesn't change full stop even using {MODIFY_TERRAIN ^Dr 16 26}
the other thing I'm working on but is less important is would using
followed by
would this put all the units in side 1 back to where they were at the point of the store even if a scenario happened in between!
An what happens to the XP?
Because try if I might the terrain at 16,26 just doesn't change full stop even using {MODIFY_TERRAIN ^Dr 16 26}
the other thing I'm working on but is less important is would using
Code: Select all
[store_unit]
[filter]
side=1
[\filter]
Variable=positions
[\store_unit]
Code: Select all
[event]
name=start
[unstore_unit]
name=positions
[\unstore_unit]
[\event]
An what happens to the XP?
Re: Blueknights Questions
1. The slashes in closing tags are the other way round - [/filter], not [\filter]
2. variable, not Variable.
3. It has to be Otherwise only the first unit is unstored.
Actually I'd suggest to use [recall] instead of unstoring. Store everybody, then recall everybody except the leader on the position you stored. For your leader, just teleport him to the stored location.
2. variable, not Variable.
3. It has to be
Code: Select all
{FOREACH positions i}
[unstore_unit]
variable=positions[$i]
[/unstore_unit]
{NEXT i}
Actually I'd suggest to use [recall] instead of unstoring. Store everybody, then recall everybody except the leader on the position you stored. For your leader, just teleport him to the stored location.
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
-
- Posts: 252
- Joined: March 30th, 2011, 8:38 pm
- Location: The UK
Re: Blueknights Questions
The wrong slaves are purely because I'm on iPod. As is the capital in variable
Thanks for clarifying that I'll start to work on that ASAP
and I'll check my code for typos and such regarding the variable.
Thanks for clarifying that I'll start to work on that ASAP
and I'll check my code for typos and such regarding the variable.