I need some code

The place to post your WML questions and answers.

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.
User avatar
Mist
Inactive Developer
Posts: 753
Joined: February 15th, 2007, 8:44 am
Location: Milton Keynes, UK

Re: I need some code

Post by Mist »

It won't work. Look at the following three and think again.

Code: Select all

name==The First Fight

Code: Select all

map_data="@[/home/mine/.wesnoth/editor/maps/Scenario Folder/(1)The First Fight]"

Code: Select all

[side]
side=1
controller=human
team_name=1
user_team_name= _ "The Knights Errant"
[side]
side=1
controller=human
team_name=1
user_team_name= _ "Elves"
Somewhere, between the sacred silence and sleep.
Disorder.
LOrdEmeraldhide
Posts: 63
Joined: April 29th, 2009, 12:19 am

Re: I need some code

Post by LOrdEmeraldhide »

Thanks.Didn't think of the

Code: Select all

 thing

I haven't run it yet because i haven't created a Campaign.I'm basically asking if you see any errors that i have that can be fixed early on.I have read some of the other post and you guys have caught some stuff early on and i just wanted to learn from the experience from others
Last edited by LOrdEmeraldhide on May 2nd, 2009, 8:15 pm, edited 1 time in total.
The boy said: "My name's Johnny and it might be a sin,
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
LOrdEmeraldhide
Posts: 63
Joined: April 29th, 2009, 12:19 am

Re: I need some code

Post by LOrdEmeraldhide »

Mist wrote:It won't work. Look at the following three and think again.

Code: Select all

name==The First Fight

Code: Select all

map_data="@[/home/mine/.wesnoth/editor/maps/Scenario Folder/(1)The First Fight]"

Code: Select all

[side]
side=1
controller=human
team_name=1
user_team_name= _ "The Knights Errant"
[side]
side=1
controller=human
team_name=1
user_team_name= _ "Elves"

Like i said i need help.What about these three make it not work?
The boy said: "My name's Johnny and it might be a sin,
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
LOrdEmeraldhide
Posts: 63
Joined: April 29th, 2009, 12:19 am

Re: I need some code

Post by LOrdEmeraldhide »

ok i think i have fixed SOME bugs in my coding,
Spoiler:
The boy said: "My name's Johnny and it might be a sin,
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
User avatar
mnewton1
Posts: 777
Joined: November 12th, 2008, 4:31 am
Location: On my pretty teal horsey.
Contact:

Re: I need some code

Post by mnewton1 »

Here is what I found:

Code: Select all

map_data="[@/home/mine/.wesnoth/data/campaigns/Imperiuss' Quest/maps/1_The_First_Fight.map"
First. The path starts at 'campaigns'. Also you need { this bracket not this [ bracket. And you need a closing bracket. It should look like this:

Code: Select all

map_data="{@campaigns/Imperiuss' Quest/maps/1_The_First_Fight.map}"
And the other problem is this:

Code: Select all

name=The First Fight
You should have this:

Code: Select all

name=_"The First Fight"

I hope that helps :D
Creator of Ageless Era
Check out Frogatto & Friends, it's made by the same people who created The Battle for Wesnoth!
LOrdEmeraldhide
Posts: 63
Joined: April 29th, 2009, 12:19 am

Re: I need some code

Post by LOrdEmeraldhide »

Thank you very much. :D
Is there anything else?
I want to ask about the side code. what does that mean.I think it is important
The boy said: "My name's Johnny and it might be a sin,
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: I need some code

Post by Max »

LOrdEmeraldhide wrote:I want to ask about the side code. what does that mean.I think it is important
why not just have a look at the documentation? http://www.wesnoth.org/wiki/SideWML
LOrdEmeraldhide
Posts: 63
Joined: April 29th, 2009, 12:19 am

Re: I need some code

Post by LOrdEmeraldhide »

OK I've figured it out.
Now i have no idea about the campaign though.I read the tutorial and i makes no sense
Can some one walk me through making it?
The boy said: "My name's Johnny and it might be a sin,
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
LOrdEmeraldhide
Posts: 63
Joined: April 29th, 2009, 12:19 am

Re: I need some code

Post by LOrdEmeraldhide »

Ok this is The First Fight v1.4
Spoiler:
The boy said: "My name's Johnny and it might be a sin,
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: I need some code

Post by Max »

Champion is no unit - it's Elvish Champion...
LOrdEmeraldhide
Posts: 63
Joined: April 29th, 2009, 12:19 am

Re: I need some code

Post by LOrdEmeraldhide »

really???!!!
Thank you,
So is it Elvish ____ always?
also is it Orcish ____ and Troll ___?
The boy said: "My name's Johnny and it might be a sin,
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
User avatar
mnewton1
Posts: 777
Joined: November 12th, 2008, 4:31 am
Location: On my pretty teal horsey.
Contact:

Re: I need some code

Post by mnewton1 »

Yes. And it is not Loyalist _____ it is only ______
Creator of Ageless Era
Check out Frogatto & Friends, it's made by the same people who created The Battle for Wesnoth!
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: I need some code

Post by Max »

all this stuff isn't hardcoded in the game itself. you can actually look it up - unit definitions are in data/core/units, e.g. the Champion would be data/core/units/elves/Champion.cfg.
LOrdEmeraldhide
Posts: 63
Joined: April 29th, 2009, 12:19 am

Re: I need some code

Post by LOrdEmeraldhide »

I have moved my final Campaign and Scenario to a new forum called "final Scenario and Campaign"

If any of you want to help me critic it please come and help.This is so close to being done i can taste victory.

If i'm missing something please tell me.That includes if i did not give thanks to you if you played a large part in making this campaign possible.
The boy said: "My name's Johnny and it might be a sin,
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
Post Reply