Making cpu attackwithout thought

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.
Post Reply
skullman
Posts: 18
Joined: August 29th, 2005, 5:59 am
Location: austrlia

Making cpu attackwithout thought

Post by skullman »

ey guys its me agian lol. im making a large Wesnoth War One campaign (WW1 sorder thing), quess what the orcs get to be the Germans :D lol, yer erm im having troubles with some areas in my scen, where they dont attack or they all line up and wait for me to attack them, was wondering if any1s got some code or a idea on how i can get them to just attack without care? im tryin to fit it into a scen where ive got walls and water just next to em so theyll last longer for the theme, and they last too long and dont fight when their lvl 2 or 3... any ideas?
SkullMan
Ceri Cat
Posts: 18
Joined: December 17th, 2006, 5:17 am
Location: Tamworth, Australia
Contact:

Post by Ceri Cat »

Not very realistic (Elves would be a bit closer than Orks), although I could just imagine an Ork done up with a moustache like Adolph's standing around yapping in a trench for a bit of fun.

Have you done anything to them that might be causing their delay? While I could understand them sitting put in trench warfare I'm a little surprised they're not trying to engage.
tsr
Posts: 790
Joined: May 24th, 2006, 1:05 pm

Post by tsr »

Take a look at the AiWML page over at the wiki.

/tsr
Gus
Posts: 520
Joined: May 16th, 2005, 5:40 pm
Location: France

Post by Gus »

Yeah, Orcs would be better suited for Russians, i guess. Expandable grunts all over the place.
Hard work may pay off in the long run, but laziness always pays off right away.
Ceri Cat
Posts: 18
Joined: December 17th, 2006, 5:17 am
Location: Tamworth, Australia
Contact:

Post by Ceri Cat »

Well Orks are both big and ugly, while Elvcs tend to be fair skinned and light haired, add to the fact the Germans produced some of the finest weapons in both world wars. I still like to shoot a Mauser KAR-98 when I get the chance, which is a WWI rifle that got revamped into the KAR-98k for WWII (that was a good decision IMO, though the allies had the same idea with the SMLE [Short Muzzled Lee Enfield]). Heck for a very long time German electronics were also on the front of the global market. About the only thing the Russians pulled off successfully was mass production. Oh and mounting battleship guns on tanks (*shudders* Only half joking, have you ever seen the barrel of an IS-2?).
User avatar
appleide
Posts: 1003
Joined: November 8th, 2003, 10:03 pm
Location: Sydney,OZ

Post by appleide »

Gus wrote:Yeah, Orcs would be better suited for Russians, i guess. Expandable grunts all over the place.
Expandable Grunts? I guess Russians ARE a little big... but i think expandable grunts will be a little overpowered, imo. :lol:

This code means "Human unit worth 1, my[ai] unit is worth 0. so I can just throw everything at the human". Stuff it into your map and hope it works.

[ai]
aggression=1.0
[/ai]
Why did the fish laugh? Because the sea weed.
Post Reply