Search found 1202 matches

by gfgtdf
June 2nd, 2013, 10:02 pm
Forum: Lua Labs
Topic: wesnoth.current.event_context and enter_hex
Replies: 7
Views: 2503

wesnoth.current.event_context and enter_hex

hi i have a problem: i use "wesnoth.game_events.on_event" and "wesnoth.current.event_context" to handle events, worked very good so far. but now i have a problem: in the enter_hex events the location of the unit and the location where the event is trieggered is not aways the same. i think wesnoth.cu...
by gfgtdf
June 2nd, 2013, 2:38 pm
Forum: Scenario & Campaign Development
Topic: A Scenario with robots
Replies: 36
Views: 12980

Re: A Scenario with robots

hm but these all use legs or leviationg while my robots use mosty wheels or propellers. plus my oringinal intention was for the robots to be robots. and not living beeings with robotic accessory. if you have questins about my code feel free to ask. there is also an example by vultraz about gui2 code...
by gfgtdf
June 2nd, 2013, 11:52 am
Forum: Scenario & Campaign Development
Topic: A Scenario with robots
Replies: 36
Views: 12980

Re: A Scenario with robots

for the robotsmenau i used some gui2 code(http://wiki.wesnoth.org/LuaWML:Display#wesnoth.show_dialog). unfornatly that feature is not verygood documented, and if you do something wrong it won't give you a error message but crashes the game instead. you can lern how the dialog WML table could look li...
by gfgtdf
June 1st, 2013, 7:59 pm
Forum: Scenario & Campaign Development
Topic: A Scenario with robots
Replies: 36
Views: 12980

A Scenario with robots

hi i just made & uploadet a scenario "scenario with robots" (for wesnoth 1.12.0 or later). I also contains an era "Era with robots" where you can play with the robots from "scenario with robots" against other players in mp. i'd be happy about some feedback. especialy about difficulcy or existent bug...
by gfgtdf
June 1st, 2013, 7:55 pm
Forum: Scenario & Campaign Development
Topic: Legend of the Invincibles
Replies: 7229
Views: 987568

Re: Legend of the Invincibles

@Silux:
the Duke uses it xbows too.
and claws and bolas can only be rafted if i am right. and thundersticks don't exist.
by gfgtdf
June 1st, 2013, 11:21 am
Forum: Lua Labs
Topic: gui2 and replays
Replies: 3
Views: 1769

Re: gui2 and replays

ty, i suppose, that is was i was looking for, i haven looked at synchronize_choice becaus i thought it was oonly for muliplayer stuff. sicne right now the dialog is changing an existent object instead of returning a new object, it may need some greater changes but it is doable. but i have another qu...
by gfgtdf
May 31st, 2013, 10:56 pm
Forum: Lua Labs
Topic: gui2 and replays
Replies: 3
Views: 1769

gui2 and replays

hi i wrote a scenario that uses a lot of lua and also some gui2 codes. the problem is that when i see the replay. the replay shows me the gui2 dialog. and because the dialog influences the game, the replay will be detroyed if i dont make exactly the same coiches as in the original. is threre any way...
by gfgtdf
May 31st, 2013, 8:32 pm
Forum: WML Workshop
Topic: nested quoted string error
Replies: 2
Views: 478

Re: nested quoted string error

there was also a line number given in the error messge. plus the other code is all very easy. EDIT: it could alo be the } in that line. but i dont know much about that to judge about that EDIT2: i solved it by using "= << >>" like in the [lua] statements. but i still wonder if theree is another way ...
by gfgtdf
May 31st, 2013, 7:57 pm
Forum: WML Workshop
Topic: nested quoted string error
Replies: 2
Views: 478

nested quoted string error

hi i have a problem and i dont understand it,i get the error saying me something about nested quoteted string. my code is [unit] ## the "scout" type="Robot_Small" placement="leader" [variables] robot="{ [""components""] = { [1] = { [""component""] = ""core"", [""distance""] = 0, [""pos""] = { [""y""...
by gfgtdf
May 24th, 2013, 7:32 pm
Forum: Coder’s Corner
Topic: AI never buys spearmen
Replies: 4
Views: 2655

Re: AI never buys spearmen

Coffee wrote:The AI in 10.6 was not very good and slow as well.
just to be sure, if i play the campaigns with version 11.2/4 instead of 10.6 the enemys turn will be much faster, in scenaios where the enmyturns take very long?
by gfgtdf
May 23rd, 2013, 4:45 pm
Forum: WML Workshop
Topic: How are advance and post advance events fired in 1.11.1+ ?
Replies: 5
Views: 726

Re: How are advance and post advance events fired in 1.11.1+

i just tested

Code: Select all

	[event]
		name=post advance
		[message]
			speaker=narrator
			message="$x1 $y1 $unit.name"
		[/message]
	[/event]
with a simple scenario.
and it worked as wanted with amla and levelup, with first_time_only and without.

(version 11.2 win7 64bit)
by gfgtdf
May 23rd, 2013, 1:49 pm
Forum: WML Workshop
Topic: How are advance and post advance events fired in 1.11.1+ ?
Replies: 5
Views: 726

Re: How are advance and post advance events fired in 1.11.1+

I think it's never been like that, it was more like: 1. A unit kills an opponent, earning enough experience to advance. 2. Last breath and die events are fired. 3. The GUI asking what should it advance to appears 4. Advance event is fired. 5 and the change chosen is performed, but it is aborted if c...
by gfgtdf
May 22nd, 2013, 12:31 pm
Forum: Technical Support
Topic: harm_unit doesnt fire advance event when experience=yes
Replies: 4
Views: 1050

Re: harm_unit doesnt fire advance event when experience=yes

hm i dont find a "post bug" button, do i have to Create anaccount?
and when i post it do i have to Assigned to it to someone?

EDIT: problems solved, found the button
by gfgtdf
May 21st, 2013, 10:16 pm
Forum: Scenario & Campaign Development
Topic: Legend of the Invincibles
Replies: 7229
Views: 987568

Re: Legend of the Invincibles

dunno if i have the latest version installed, but you forgot silent=yes on an object in "the last crusade".


ah and i have a question about the sixth scenario:
Spoiler:
by gfgtdf
May 21st, 2013, 7:50 pm
Forum: Technical Support
Topic: harm_unit doesnt fire advance event when experience=yes
Replies: 4
Views: 1050

harm_unit doesnt fire advance event when experience=yes

my problem is:
harm_unit doesnt fire post advance event when experience=yes.
using wesnoth 10.6 on win 7 x64.

is this intendet? (if yes then why?).

i think the reason is, that harm_unit uses unstrore unit at the end with advance = yes and fire_event = no by default.