I need some code
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.
-
- Posts: 63
- Joined: April 29th, 2009, 12:19 am
I need some code
hello everyone,i'm not really code savvy so i would like to ask someone who is expierenced with code to develop a scenario for me.If this is unable(Such as i am a noob of some such) i understand.
If you are able to do this for me thank you
My scernario:
Winning:Destroy enemies
Losing:Death of Leader,Death of allies leader
Two teams:
Elves,Rebels,and dwarfs
V.S.
Orcs,Dragons and Undead.
I have a map to set it up on i just need the coding to attachit.if anyone can help me please post
P.S.
I will have a more descriptive version of what i need once some one responds
If you are able to do this for me thank you
My scernario:
Winning:Destroy enemies
Losing:Death of Leader,Death of allies leader
Two teams:
Elves,Rebels,and dwarfs
V.S.
Orcs,Dragons and Undead.
I have a map to set it up on i just need the coding to attachit.if anyone can help me please post
P.S.
I will have a more descriptive version of what i need once some one responds
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."
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
Re: I need some code
http://www.wesnoth.org/wiki/Create
http://www.wesnoth.org/wiki/BuildingScenarios
http://www.wesnoth.org/wiki/BuildingCampaigns
http://www.wesnoth.org/wiki/ReferenceWML
Nobody here (unless some crazy person shows up in the next 5 minutes offering to do other peoples work), will code your... draw your... write your... anything. However EVERYONE here will be more than happy to help you do it yourself.
That being said welcome to wesnoth. The links I posted above are a great start.
Also I find that its best to just start off with a simple multiplayer (open ended) scenario and slowly build it up and up as you learn.
To get started coding:
Open any shipped multiplayer scenario with notepad. And make sure to check the box that says "always use this program". Save a copy of it. Start modifying it to get your feet wet. And then when you start making your own stuff "save as" "all filetypes" ".cfg".
If you need more specific help or get stuck, you will find that wesnoth has one extremely helpful community (just not helpful enough to do other peoples work for them).
If you're scared, WML is almost the easiest language to learn ever. Second only to pig latin. You'll be as you say "code savvy" in no time. Trust me.
http://www.wesnoth.org/wiki/BuildingScenarios
http://www.wesnoth.org/wiki/BuildingCampaigns
http://www.wesnoth.org/wiki/ReferenceWML
Nobody here (unless some crazy person shows up in the next 5 minutes offering to do other peoples work), will code your... draw your... write your... anything. However EVERYONE here will be more than happy to help you do it yourself.
That being said welcome to wesnoth. The links I posted above are a great start.
Also I find that its best to just start off with a simple multiplayer (open ended) scenario and slowly build it up and up as you learn.
To get started coding:
Open any shipped multiplayer scenario with notepad. And make sure to check the box that says "always use this program". Save a copy of it. Start modifying it to get your feet wet. And then when you start making your own stuff "save as" "all filetypes" ".cfg".
If you need more specific help or get stuck, you will find that wesnoth has one extremely helpful community (just not helpful enough to do other peoples work for them).
If you're scared, WML is almost the easiest language to learn ever. Second only to pig latin. You'll be as you say "code savvy" in no time. Trust me.
- Dragonchampion
- Posts: 758
- Joined: November 6th, 2007, 7:46 pm
- Location: North Carolina
Re: I need some code
LOL, I already sent him a PM asking about the storyline.
If the story is good, I may help a bit.
If the story is good, I may help a bit.
Ehhhh... don't mind me, I'm just the annoying little modder who gets on peoples nerves. I'll just lurk till Someone says my name. :P
Oh, and also Creator of The War Of Terrador
Oh, and also Creator of The War Of Terrador
Re: I need some code
Moved to the forum that is about code.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
Re: I need some code
-cough- crazy person -cough-
Re: I need some code
Are you sure coding really needed? Go to Multiplayer, Local game. Create a game of 6 opponents with the default era and group them in two teams. Select the appropriate factions. You got it!LOrdEmeraldhide wrote: My scernario:
Winning:Destroy enemies
Losing:Death of Leader,Death of allies leader
Two teams:
Elves,Rebels,and dwarfs
V.S.
Orcs,Dragons and Undead.
Well, you want to play it on your own map. Simple as well. Make the map and insert it into the game just as other maps are introduced.
It is ok to correct me if my English is too bad.
Working on Cunnicula Civil War
Working on Cunnicula Civil War
-
- Posts: 63
- Joined: April 29th, 2009, 12:19 am
Re: I need some code
You can do that?Lord Ork wrote:
Are you sure coding really needed? Go to Multiplayer, Local game. Create a game of 6 opponents with the default era and group them in two teams. Select the appropriate factions. You got it!
Well, you want to play it on your own map. Simple as well. Make the map and insert it into the game just as other maps are introduced.
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."
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
Re: I need some code
Yes, just design your map properly in the map editor, and make sure to use the flag button to set up starting positions as well.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
-
- Posts: 63
- Joined: April 29th, 2009, 12:19 am
Re: I need some code
I have had a request to post the Story line on this Game i want to create.
The game starts with to basic teams
The good guys(Loyalist(mandatory) and the elves/dwarfs
The bad guys (Dragons(mandatory) and the undead/orcs/trolls
The battle commences when the loyalists send a messenger(Fleet foot or whatever he is called,he is a outcast in the island level) to the dwarfs/elves to ask for help because the dragons are ravaging the home.The have poisoned the Mermen water and have cut off the roads to Mer-lake and the ivory coast.The mer-people are dying from lack of water!The loyalist believe that the mighty elves and the powerful Dwarfs can save them.
The loyalist are in the Kings square castle.
The Dwarfs/elves are in the Nomads farmland
The dragons start in the Caves
The orcs(if chosen)start in the desert
The trolls(if chosen) start at mere-lake
The undead(if chosen) start in the Snow capped mountains
The objective is to liberate the Desert/Mere-lake/Mountains from the Dragons.
The Player must survive till the end of the turns and have
killed the leader of the Orcs/Trolls/Undead to win
The player receives a bonus for killing the dragon leader.
The player loses if
A.The Loyalist fort is captured(leader A is killed)
B.The Nomad Farms are captured(Leader B is killed)
C.The Turns run out with no fort reclaimed
That'\s my story so far.If any of you have comments please tell me.But P.M. me if you have any additional concerns.I will try to flesh this out as is.
The way I've written it out thought this is definitely going to be a campaign
The game starts with to basic teams
The good guys(Loyalist(mandatory) and the elves/dwarfs
The bad guys (Dragons(mandatory) and the undead/orcs/trolls
The battle commences when the loyalists send a messenger(Fleet foot or whatever he is called,he is a outcast in the island level) to the dwarfs/elves to ask for help because the dragons are ravaging the home.The have poisoned the Mermen water and have cut off the roads to Mer-lake and the ivory coast.The mer-people are dying from lack of water!The loyalist believe that the mighty elves and the powerful Dwarfs can save them.
The loyalist are in the Kings square castle.
The Dwarfs/elves are in the Nomads farmland
The dragons start in the Caves
The orcs(if chosen)start in the desert
The trolls(if chosen) start at mere-lake
The undead(if chosen) start in the Snow capped mountains
The objective is to liberate the Desert/Mere-lake/Mountains from the Dragons.
The Player must survive till the end of the turns and have
killed the leader of the Orcs/Trolls/Undead to win
The player receives a bonus for killing the dragon leader.
The player loses if
A.The Loyalist fort is captured(leader A is killed)
B.The Nomad Farms are captured(Leader B is killed)
C.The Turns run out with no fort reclaimed
That'\s my story so far.If any of you have comments please tell me.But P.M. me if you have any additional concerns.I will try to flesh this out as is.
The way I've written it out thought this is definitely going to be a campaign
- Dragonchampion
- Posts: 758
- Joined: November 6th, 2007, 7:46 pm
- Location: North Carolina
Re: I need some code
Sounds interesting, at the least. I may watch and see how this develops, unless you have the entire campaign plotted out and ready.
Ehhhh... don't mind me, I'm just the annoying little modder who gets on peoples nerves. I'll just lurk till Someone says my name. :P
Oh, and also Creator of The War Of Terrador
Oh, and also Creator of The War Of Terrador
Re: I need some code
That's something different. It does require coding, unless all the story happens in your imagination. Maybe you could try the scenario before starting to code. Design the map, add to the game, and select carefully sides and teams. Put the turn limit, and you have your scenario working.
If you want to add the story later, or to enforce just this sides for other players to play it, you could add the coding later. But this will give the opportunity of starting with an important work: balancing the scenario, while you learn the coding.
Good luck!
If you want to add the story later, or to enforce just this sides for other players to play it, you could add the coding later. But this will give the opportunity of starting with an important work: balancing the scenario, while you learn the coding.
Good luck!
It is ok to correct me if my English is too bad.
Working on Cunnicula Civil War
Working on Cunnicula Civil War
-
- Posts: 63
- Joined: April 29th, 2009, 12:19 am
Re: I need some code
I have already played i through and it is interesting.It is developed to be multi-player but single is doable.I've had to set a pretty high turn-set to give you time to destroy a king because the Undead breed like mad and you can't get to their leader and the orcs hide behind the Undead.
Does anyone know how to get the dragons to make more than 3 soldiers?
I have written a back story for these(yes multiple) scenarios
Does anyone know how to get the dragons to make more than 3 soldiers?
I have written a back story for these(yes multiple) scenarios
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."
"But I'll take your bet, your gonna regret, 'cos I'm the best that's ever been."
-
- Posts: 63
- Joined: April 29th, 2009, 12:19 am
Re: I need some code
Ok i have started the Coding for my Scenario but i can't figure out what the code is to gather the map i want.I think i need a preprocessor or something like that.Can anyone tell me how to make one?
-
- Posts: 63
- Joined: April 29th, 2009, 12:19 am
Re: I need some code
Here it is.Tell me if you spot any problems:
[scenario]
id=01_test-1
next_scenario=null
name==The First Fight
map_data="@[/home/mine/.wesnoth/editor/maps/Scenario Folder/(1)The First Fight]"
turns=60
{DAWN}
{MORNING}
{AFTERNOON}
{DUSK}
{FIRST_WATCH}
{SECOND_WATCH}
music=wesnoth-1.ogg
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Defeat Enemy Leader"
condition=win
[/objective]
[objective]
description= _ "Death of Konrad"
condition=lose
[/objective]
[objective]
description= _ "Turns run out"
condition=lose
[/objective]
[/objectives]
[/event]
[side]
side=1
controller=human
team_name=1
user_team_name= _ "Elves"
type=Commander
id=Champion
canrecruit=yes
recruit=Elvish Fighter,Elvish Scout,Elvish Archer,Elvish Shaman
{GOLD 100 50 0}
{INCOME 20 5 0}
[/side]
[side]
side=1
controller=human
team_name=1
user_team_name= _ "The Knights Errant"
type=Commander
id=Loyalist Lieutenant
canrecruit=yes
recruit=Loyalist Bowman,Horseman,Mage,Loyalist Fencer,Loyalist Spearman,Loyalist General
{GOLD 100 50 0}
{INCOME 20 5 0}
[/side]
[/scenario]
[scenario]
id=01_test-1
next_scenario=null
name==The First Fight
map_data="@[/home/mine/.wesnoth/editor/maps/Scenario Folder/(1)The First Fight]"
turns=60
{DAWN}
{MORNING}
{AFTERNOON}
{DUSK}
{FIRST_WATCH}
{SECOND_WATCH}
music=wesnoth-1.ogg
[event]
name=prestart
[objectives]
side=1
[objective]
description= _ "Defeat Enemy Leader"
condition=win
[/objective]
[objective]
description= _ "Death of Konrad"
condition=lose
[/objective]
[objective]
description= _ "Turns run out"
condition=lose
[/objective]
[/objectives]
[/event]
[side]
side=1
controller=human
team_name=1
user_team_name= _ "Elves"
type=Commander
id=Champion
canrecruit=yes
recruit=Elvish Fighter,Elvish Scout,Elvish Archer,Elvish Shaman
{GOLD 100 50 0}
{INCOME 20 5 0}
[/side]
[side]
side=1
controller=human
team_name=1
user_team_name= _ "The Knights Errant"
type=Commander
id=Loyalist Lieutenant
canrecruit=yes
recruit=Loyalist Bowman,Horseman,Mage,Loyalist Fencer,Loyalist Spearman,Loyalist General
{GOLD 100 50 0}
{INCOME 20 5 0}
[/side]
[/scenario]
Re: I need some code
Code: Select all
Put code inside [code] tags :D
Did it work when you tried it? What problems specifically are we to look for :s