Search found 785 matches

by Simons Mith
December 28th, 2011, 4:33 pm
Forum: WML Workshop
Topic: Changing team color
Replies: 3
Views: 456

Re: Changing team color

If altering the side color doesn't work, and losing the side statistics is unacceptable, your other alternative would be to recolor every unit. It might be better to start with a team color of black and an on-recruit event that applies the TEAM_COLOR_OVERRIDE macro to make each unit white. Then when...
by Simons Mith
December 22nd, 2011, 1:22 am
Forum: Coder’s Corner
Topic: Exercises in Formula and Lua AI and AI-demos add-on feedback
Replies: 472
Views: 86552

Re: Exercises in Formula and Lua AI

Interesting question. I can't give you any specific pointers, but here's what my general approach would be. I doubt I'll be suggesting anything particularly novel, but here goes anyway: If I was going to try to code such a thing for myself, my first priority would be the same as yours - identifying ...
by Simons Mith
November 27th, 2011, 10:56 pm
Forum: Coder’s Corner
Topic: Exercises in Formula and Lua AI and AI-demos add-on feedback
Replies: 472
Views: 86552

Re: Exercises in Formula and Lua AI

That seems happy now. Unit behaviour is the same, and the error message has gone. Cheers. Edit: Here's a new question - What's the cleanest way to turn stationed_guardian and coward behaviour off again? I've got some escorts taking an NPC to her escape point, but after that I'd like them to go back ...
by Simons Mith
November 27th, 2011, 9:28 pm
Forum: Coder’s Corner
Topic: Exercises in Formula and Lua AI and AI-demos add-on feedback
Replies: 472
Views: 86552

Re: Exercises in Formula and Lua AI

I've plugged in the coward AI now, and I am pleased to announce I now have hordes -or herds- of cowardly horses. But this seems to have uncovered a bug. My horses have defined flee_to locations, as you might expect, and when they reach that hex, or ones near to it, they are killed to remove them. Th...
by Simons Mith
November 26th, 2011, 4:28 pm
Forum: WML Workshop
Topic: WML questions: invalid wml
Replies: 170
Views: 21903

Re: Question: [event] in macro won't start

Or, load, turn off compressed saves, re-save. As uncompressed saves can easily be 20-30 times bigger than compressed saves, it pays to only do this while you're testing stuff.
by Simons Mith
November 22nd, 2011, 8:30 pm
Forum: WML Workshop
Topic: TYPED_GENERIC_UNIT macro + "None" unit
Replies: 3
Views: 614

Re: TYPED_GENERIC_UNIT macro + "None" unit

Blimey, and I thought I was just being Lazy
http://en.wikipedia.org/wiki/Larry_Wall ... programmer
by Simons Mith
November 22nd, 2011, 7:52 pm
Forum: WML Workshop
Topic: TYPED_GENERIC_UNIT macro + "None" unit
Replies: 3
Views: 614

TYPED_GENERIC_UNIT macro + "None" unit

I have created a set of unit macros usable as follows: {TYPED_GENERIC_UNIT 3 "Troll Whelp" "Troll" "Troll Warrior" 12 2} {TYPED_GENERIC_UNIT 3 "None" "Troll Whelp" "Troll" 12 3} {TYPED_GENERIC_UNIT 3 "None" "None" "Troll Whelp" 12 4} Which would create one, two or three trolls on side 3 in hexes 12,...
by Simons Mith
November 22nd, 2011, 6:25 pm
Forum: WML Workshop
Topic: [teleport] VS seperate moveto event.
Replies: 6
Views: 981

Re: [teleport] VS seperate moveto event.

If you top and tail the quest01continue.cfg file with #define QUEST01CONTINUE and ... #enddef you can call it from the original scenario file with {QUEST01CONTINUE}, you could pass parameters to it if you needed to, you can put an [if] and [then] round it if you want and provided it remains in your ...
by Simons Mith
November 20th, 2011, 2:52 pm
Forum: WML Workshop
Topic: How to [store_unit], kill, [unstore_unit] with fade out/in?
Replies: 5
Views: 1215

Re: How to [store_unit], kill, [unstore_unit] with fade out/

Some progress. The unwanted unit inversion appears to be due to something absent from the code above: the new 1.9 auto_vflip= tag must be added and set to no, as it seems to default to yes. What is this tag actually intended for, and shouldn't it default to no? So that not having it present at all d...
by Simons Mith
November 20th, 2011, 2:43 pm
Forum: Coder’s Corner
Topic: Exercises in Formula and Lua AI and AI-demos add-on feedback
Replies: 472
Views: 86552

Re: Exercises in Formula and Lua AI

Well, I plumbed in a couple of stationed guards into my current working scenario, and the work fine. My first ever guards who return to their stations!

/me color="#impressed"

(Which is just black, apparently.)
by Simons Mith
November 20th, 2011, 1:32 am
Forum: Art Contributions
Topic: New bridges (bridge-castle-transitions, hanging bridge)
Replies: 132
Views: 40943

Re: New try at a hanging bridge

I know that! But if I only had a choice of a 1-hex bridge or a 4-hex bridge, and the other combinations weren't available, I'd try to adjust my maps to suit. Hence why I suggested invisible bridges plus halos. Because if you do a selection of bridges as halos, people whinge less that some combinatio...
by Simons Mith
November 19th, 2011, 10:18 pm
Forum: Art Contributions
Topic: New bridges (bridge-castle-transitions, hanging bridge)
Replies: 132
Views: 40943

Re: New try at a hanging bridge

I like em. I also liked the earlier ones as well, wherever they've gone. Idle query: Could we have an invisible bridge terrain type plus a set of halos? I'd love things like a multi-hex Indiana Jones style bridge, or a multi-hex grand bridge several hexes wide. But shoehorning them into WML is horri...
by Simons Mith
November 19th, 2011, 7:20 pm
Forum: Writers’ Forum
Topic: Wesnoth lore, idioms and phrases braindump
Replies: 39
Views: 12095

Re: Wesnoth lore, idioms and phrases braindump

'Beardlegs' and 'ax moles' are both a bit weak in my view. But Boldek's 'Orcs seem to despise and envy orderly prosperity and quiet civilization...' comments are very insightful. The Shinobi mask observations I also particularly like, because it inspires me to some dwarvish derogatory comments about...
by Simons Mith
November 19th, 2011, 3:56 am
Forum: WML Workshop
Topic: How to [store_unit], kill, [unstore_unit] with fade out/in?
Replies: 5
Views: 1215

Re: How to [store_unit], kill, [unstore_unit] with fade out/

mini-bump (will merge this double-post later) - is this a bug? Even if there is an error in that code, I'm mystified as to how anything in it could cause a unit to turn upside down. The behaviour appears identical if you replace highlight with alpha. Edit: Ack! I thought I /could/ merge my own posts...
by Simons Mith
November 18th, 2011, 8:19 pm
Forum: Technical Support
Topic: Random Nested Quoted String Error
Replies: 10
Views: 1967

Re: Random Nested Quoted String Error

Have you only got one difficulty level? I posted that sample code to the wiki - I even signed it - but it does assume you have more than one difficulty level. If you only have one, then any stray trailing plus signs will cause strangeness. Also, what difficulty level are you using? You should make s...