## Search found 19 matches

May 17th, 2010, 11:53 pm
Forum: Coder’s Corner
Topic: P2P random numbers
Replies: 9
Views: 1856

### Re: P2P random numbers

For anyone interested, the search term is "Commitment scheme" . I'll slightly change notation and make the protocol more symmetric: Alice chooses a random number X in given range Alice computes f=F(X) and sends f to Bob Bob chooses a random number Y in given range Bob computes g=F(Y) and sends g to ...
April 13th, 2010, 2:28 am
Forum: Technical Support
Topic: Assertion Failed: Wesnoth won't start up
Replies: 4
Views: 797

### Re: Assertion Failed: Wesnoth won't start up

An assertion is kind of a sanity check for the computer. The programmer specifies some condition that really, really should be satisfied at a certain time, and if it isn't, the computer halts the program. Fun fact: The line in question seems to be 'assert(false)', that means that the program never s...
October 29th, 2009, 6:50 pm
Forum: Art Development
Topic: Orc Portrait Series
Replies: 300
Views: 94233

### Re: Orc Portrait Series

Awesome Seconded. On a much lighter note, one of the orcs (the grunt with both fists clenched) looks like he should plunder a pharmacy next time, for some fiber supplements and such stuff :roll: I'd imagine a raging posture one provocation before the fight to be the exact opposite: stretching up, c...
October 29th, 2009, 6:09 pm
Forum: Art Development
Topic: Loyalist Portrait Series
Replies: 921
Views: 161746

### Re: Loyalist Portrait Series

Besides that, why would he be holding a big, heaving lance when he's talking not fighting? He's likely got it stashed somewhere, but there's no reason why he HAS to be holding it. It actually makes more sense that way it's originally drawn. Maybe he is receiving last orders right before the attack?...
October 29th, 2009, 6:01 pm
Forum: Art Contributions
Topic: Portrait sketches
Replies: 398
Views: 71666

### Re: Portrait sketches

Whoa. Apparently we will soon have a canonical answer to the question "What do wesnothian orcs look like?". @Antonius: I recall someone - maybe Jetrel - mentioning that wesnothian orcs do keep their equipment in good condition. They would recognize - and take - good equipment if they plunder it. May...
October 16th, 2009, 7:12 pm
Forum: WML Workshop
Topic: Help with [resistance]
Replies: 7
Views: 595

### Re: Help with [resistance]

I just tested this macro, it seems to work fine for me. :hmm: Remember, macros must be defined before use. Is there any error message on the console? Where did you put this macro? Do you actually use the macro like this in the unit definition? Did you check for spelling errors? [unit_type] id=Test S...
April 21st, 2009, 2:46 pm
Forum: Ideas
Topic: About the format of attacks ( damage-strikes )
Replies: 57
Views: 6219

### Re: About the format of attacks ( damage-strikes )

Yet another opinion from the peanut gallery: Why not use the @ symbol? "7 widgets @ \$2 = \$14" "4 strikes @ 5 HP = (up to) 20 HP" The elvish fighter for example would then have "4 @ 5 HP melee (blade)" "3 @ 4 HP ranged (pierce)" New players can have three plausible preconceived opinions about the sym...
April 19th, 2009, 8:24 pm
Forum: Faction & Era Development
Topic: The War of Terrador: RIP
Replies: 253
Views: 22250

### Re: The War of Terrador: Balancing Thread

I would think it would be simpler to do something like this, and let the normal combat code handle the kill and exp: [snip some code] Note: It's "second_unit.hitpoints" instead of "second_unit.variables.hitpoints". "damage_taken" seems to be used for statistics, but not for anything else. I tried y...
April 19th, 2009, 6:01 pm
Forum: Faction & Era Development
Topic: The War of Terrador: RIP
Replies: 253
Views: 22250

### Re: The War of Terrador: Balancing Thread

The instakill can be done in WML. The following code (which should work) creates a fake weapon special and a corresponding event. On attack, the special has a 1 in 5 chance for an instakill, AND he gets the corresponding experience. You might want to change this for balancing reasons. Hope this is h...
February 6th, 2009, 8:36 pm
Forum: Coder’s Corner
Topic: pseudo-random generator + improvement idea
Replies: 47
Views: 17186

### Re: pseudo-random generator + improvement idea

@ Glass Pearl Player: Sorry to disagree, but I have used exactly the Wesnoth's RNG code during my test (over 1.000.000 of time), and in the test I displayed here, it was exactly an unit with 4 strike at 70% chance to hit. So no, there isn't more chance to miss all the 4 strikes, in my test, it happ...
February 4th, 2009, 12:21 am
Forum: Coder’s Corner
Topic: pseudo-random generator + improvement idea
Replies: 47
Views: 17186

### Re: pseudo-random generator + improvement idea

Ladies and Gentlemen, allow me to make an outrageous claim, one in stark contrast to the opinion of the esteemed ced_ne, who claims that, while the computed chance for a mage to miss four strikes in a row is 0.81%, or roughly one in onehundredtwentythree, such an unfortunate event happened far more ...
February 2nd, 2009, 10:33 pm
Forum: Game Development
Replies: 20
Views: 5094

I always assumed that 3D models were big files... but I suppose not. It depends of course on the format used. However (in this laymans opinion), when using a binary format, one could easily get down to 48 bytes per triangle (2 bytes per 3d-coordinate makes 6, 6 more for normals, another 4 for 2 tex...
January 29th, 2009, 2:26 pm
Forum: WML Workshop
Topic: Doubleshot ability
Replies: 8
Views: 918

### Re: Doubleshot ability

This thread needs some WML code. Here we go: #a dummy ability, to be filtered upon by the event #define WEAPON_SPECIAL_DOUBLESHOT [double_shot] id=double_shot name= _ "double shot" name_inactive = _ "double shot" description = _ "Double Shot: On attack, this unit has a 50% chance per hit to deal 50%...
January 28th, 2009, 1:13 pm
Forum: WML Workshop
Topic: Warcry Leadership-like ability.
Replies: 6
Views: 866

### Re: Warcry Leadership-like ability.

I'm quite bad at WML, but, what about giving the unit the leadership ability when it attacks, and retiring it at the beginning of the turn? if it does this the +25% boost is applied to adjacent units until the start of their next turn, they can move around and keep this boost, as well as attack, th...
January 28th, 2009, 3:01 am
Forum: WML Workshop
Topic: Warcry Leadership-like ability.
Replies: 6
Views: 866

### Re: Warcry Leadership-like ability.

Sounds like a job for a fake ability. in an attack event, filter for this ability, and all adjancent units get another temporary abilty - this time a real one, that boosts damage by the appropiate amount. Then, in a side turn or turn refresh event, remove this ability again. In theory, this should b...