Search found 106 matches

by Kernigh
July 27th, 2012, 1:17 am
Forum: WML Workshop
Topic: upgrade from 1.8 to 1.10.3
Replies: 6
Views: 874

Re: upgrade from 1.8 to 1.10.3

Your use of wmllint is wrong. In your Terminal, the "Traceback" and "IOError" is an error message. It describes how wmllint tried to read the first line of './Library/Acrobat User Data/8.0_x86/Synchronizer/Commands' . This means that wmllint is looking at the wrong files! Your input is wrong. Your i...
by Kernigh
July 16th, 2012, 9:13 pm
Forum: WML Workshop
Topic: Heindals WML Questions
Replies: 36
Views: 4711

Re: Check Terrain Type of a changing coordinate

As a shortcut, you might remove [store_locations] and use [have_location].

Code: Select all

[if]
    [have_location]
        x,y=$XHEROSPAWN,$YHEROSPAWN
        terrain=Dd^Dc,Dd^Do,Hd,Md
    [/have_location]
    [then]
        # ...
by Kernigh
July 16th, 2012, 9:03 pm
Forum: WML Workshop
Topic: get item when enemy defeated
Replies: 12
Views: 1309

Re: get item when enemy defeated

schlamarcel wrote:how can i add a trait in an event?
This is very hard to do.
See this other thread: [solved] Adding "loyal" via object/effect
by Kernigh
July 16th, 2012, 8:49 pm
Forum: WML Workshop
Topic: Limiting factions (but not to just one)
Replies: 5
Views: 680

Re: Limiting factions (but not to just one)

This seems impossible. SideWML can lock a side to one faction (or leader), but there is no way to lock a side to a choice of two or more factions (or leaders). A potential workaround is to write some events for side 1 turn 1, side 2 turn 1, and so on, each displaying a [message] to pick a faction an...
by Kernigh
July 7th, 2012, 2:28 am
Forum: Multiplayer Development
Topic: (1.10) A New Land Classic 0.14.4
Replies: 33
Views: 6674

Re: (1.10) A New Land Classic 0.14.3

(Thu May 24, 2012) What about of making research "woodcutting" - increasing amount of gold which you get from chopping the forest? As a research option, "woodcutting" would have two uses. First, players would research "woodcutting" before clearing forests on maps like The Great Wall. Second, player...
by Kernigh
June 18th, 2012, 11:12 pm
Forum: Multiplayer Development
Topic: (1.10) A New Land Classic 0.14.4
Replies: 33
Views: 6674

Re: (1.10) A New Land Classic 0.14.4

Version 0.14.4 is now on the add-on server. Try using dwarves in A New Land: Standard, or try using "Diplomacy" to donate gold or share knowledge, or try recruiting a Thief in Aybabtu Valley. Version 0.14.4: * WesCamp can now try to translate this add-on. Older versions had at least one flaw prevent...
by Kernigh
June 16th, 2012, 2:47 am
Forum: Translations & Internationalization
Topic: [textdomain] inside #ifdef MULTIPLAYER?
Replies: 1
Views: 846

[textdomain] inside #ifdef MULTIPLAYER?

I am trying to prepare a multi-player add-on for translation. Right now, my [textdomain] tag is inside the #ifdef MULTIPLAYER zone. The entire _main.cfg is: #textdomain wesnoth-A_New_Land_Classic # _main.cfg # This file is part of A New Land Classic. #ifdef MULTIPLAYER [binary_path] path=data/add-on...
by Kernigh
June 14th, 2012, 3:17 am
Forum: WML Workshop
Topic: trouble with CALL_FUNCTION
Replies: 5
Views: 1033

Re: trouble with CALL_FUNCTION

... firing an event from side turn with a valid [primary_unit] specified, then using CALL_FUNCTION from that. Thank you! This prevented the error messages. I renamed my 'side turn' event to 'anl side turn', and then wrote [event] name=side turn first_time_only=no # Inside a side turn event, CALL_FU...
by Kernigh
June 12th, 2012, 12:57 am
Forum: WML Workshop
Topic: trouble with CALL_FUNCTION
Replies: 5
Views: 1033

Re: trouble with CALL_FUNCTION

Are you using the string unit as a name for a variable ? No, I believe that my side turn event never uses $unit as a variable. Some other events (or menu items) are using $unit to access the auto-stored unit, but my side turn event never uses $unit. To be sure, I added a {CLEAR_VARIABLE unit}. I wa...
by Kernigh
June 11th, 2012, 5:39 pm
Forum: WML Workshop
Topic: trouble with CALL_FUNCTION
Replies: 5
Views: 1033

trouble with CALL_FUNCTION

When I use CALL_FUNCTION in a side turn event, I see a bunch of errors and warnings in my xterm. In a side turn event, I wrote {WARNING "-- before function"} {CALL_FUNCTION (anl filter recruits) ( variable=t.pick option=warfare )} {WARNING "-- after function"} The only 'anl filter recruits' event is...
by Kernigh
June 10th, 2012, 11:17 pm
Forum: WML Workshop
Topic: ChaosRider’s WML questions
Replies: 459
Views: 28541

Re: I need help with the creation of codes...

ChaosRider wrote:Try this era on SX RPG, there you can check your resistances in shop :P.
You can check resistances on any map, in any game of Wesnoth, by selecting the unit, then hovering your mouse over the HP.
resistances.png
screenshot
resistances.png (61.68 KiB) Viewed 1314 times
by Kernigh
June 8th, 2012, 5:25 pm
Forum: WML Workshop
Topic: id of set_menu_item, WML architecture
Replies: 44
Views: 5671

Re: id of set_menu_item, WML architecture

Can I find out id= of a menu item from set_menu_item.show_if, set_menu_item.filter_location, set_menu_item.command? In other words: in case I have a code common for multiple menu items, can I find out which concrete menu item is being executed? You propose to check this every time that the menu ite...
by Kernigh
June 8th, 2012, 3:50 pm
Forum: WML Workshop
Topic: Attacks in units
Replies: 4
Views: 462

Re: Attacks in units

I believe that [unit_type]attacks= becomes $unit.max_attacks. Then $unit.attacks_left goes from $unit.max_attacks down to zero. This is like how [unit_type]hitpoints= becomes $unit.max_hitpoints, and how $unit.hitpoints goes from $unit.max_hitpoints down to zero. SingleUnitWML is missing documentati...
by Kernigh
June 7th, 2012, 5:10 pm
Forum: WML Workshop
Topic: Different WML questions for my campaign!
Replies: 7
Views: 657

Re: I need help with recall-WMLs

Interesting, all of these problems just disappeared and now everything works fine except for one thing. I am guessing that your problems disappeared after you quit and restarted Wesnoth. If you edit .cfg files while Wesnoth is open, then Wesnoth will not reload your .cfg files until you quit and re...
by Kernigh
June 6th, 2012, 12:59 am
Forum: Faction & Era Development
Topic: Era of Explicit Economy
Replies: 4
Views: 1589

Re: Era of Explicit Economy

I have a few issues with Era of Explicit Economy 0.2.0.1. If I set any side to Empty, there is an error message at beginning of turn 1: RCA AI 2 Could not find a unit at starting position 2,15; an Era of Explicit Economy game on this map may not work. Then all the keeps change into villages, so no o...