Campaign: Invasion of Arendia
Moderator: Forum Moderators
-
- Posts: 1114
- Joined: December 9th, 2005, 2:38 am
-
- Posts: 1114
- Joined: December 9th, 2005, 2:38 am
I just though of something for making Jack's soldiers avoid the water unitl they get a good chance to attack:
I don't know if this will work, but you get the idea
Code: Select all
[if]
[have_unit]
[filter]
side=4
type=Thug,Footpad,Poacher
[/filter]
[/have_unit]
[then]
[avoid]
type=c
side=3
[/avoid]
[else]
[target]
[filter]
description=Thored
[/filter]
[/target]
[/if]
[/then]
[/else]
It will work. You can´t have ifs elsewhere than in a macro and an event.
Better, you do in the previous scenario at the end:
Better, you do in the previous scenario at the end:
Code: Select all
[if]
[have_unit]
[filter]
side=4
type=Thug,Footpad,Poacher
[/filter]
[/have_unit]
[then]
{VARIABLE avoidterrain c}
{VARIABLE avoidside 3}
[/then]
[else]
{VARIABLE target Theored}
[/if]
[/then]
[/else]
#and in the next scenario
...side settings
[ai]
[avoid]
terrain=$avoidterrain
side=$avoidside #unsure if ai can avoid sides
[/avoid]
[target]
description=$target
[/target]
[/ai]
First read, then think. Read again, think again. And then post!
I'll add it into the scenario, and see weather it works/ what needs adding, and then add it to the code.
although I cannot add it to the server because i cannot access it anymore. (feel free it update it if it works fine on your own)
EDIT: and the thug fix is on the server, although the version number hasn't changed
although I cannot add it to the server because i cannot access it anymore. (feel free it update it if it works fine on your own)
EDIT: and the thug fix is on the server, although the version number hasn't changed

-
- Posts: 1114
- Joined: December 9th, 2005, 2:38 am
I couldn't find a thread ofr the Arendian faction, so I place this comment here:
I don't know how much Arendian units cost, but they seem kinda overpowered:
Druid should have a weaker or no melee attack and less hp
Swordsman should have either 6-4 or 5-4 and less hp
Bowman should have less hp
I noticed that none of the units have any kind of armour, so that des balance it out some
And the horse archer! Great unit! I think Wesnoth nneds more of that kind of thing =]
I don't know how much Arendian units cost, but they seem kinda overpowered:
Druid should have a weaker or no melee attack and less hp
Swordsman should have either 6-4 or 5-4 and less hp
Bowman should have less hp
I noticed that none of the units have any kind of armour, so that des balance it out some
And the horse archer! Great unit! I think Wesnoth nneds more of that kind of thing =]
-
- Posts: 1114
- Joined: December 9th, 2005, 2:38 am
I was wondering, could it be possible to get this campaign for the developement branch too?
me: Welcome to the real world. If everyone says your art and opinions suck, it's because they DO suck. Even if you're too damned proud/stupid/both to realize it.
danny_california: yep keep telling fairy tales.
danny_california: yep keep telling fairy tales.
-
- Posts: 1114
- Joined: December 9th, 2005, 2:38 am
lvl problems
also i cant get buy the lvl called "through water and stone". is it cuz u havent made the next lvl or wat .
-
- Posts: 1114
- Joined: December 9th, 2005, 2:38 am