Search found 46 matches

by LordAwsomeness
May 18th, 2018, 6:01 pm
Forum: Multiplayer Development
Topic: LA Dungeon Master
Replies: 0
Views: 83

LA Dungeon Master

Welcome to the LA Dungeon Master forum topic! Dungeon master is a multiplayer scenario where a set of heroes (generally set as 4 heroes, though not limited to that specific number) are pitted up against a dungeon master. With the 0.1.0 Beta release, the game boasts: A moderately large linier explora...
by LordAwsomeness
May 13th, 2018, 3:27 pm
Forum: WML Workshop
Topic: How do you remove the undead trait?
Replies: 9
Views: 172

Re: How do you remove the undead trait?

And calm down, I already knew about the gamestate; it doesn't change the fact that you cant undo a permanent trait runs off of the 'availability=musthave' I might sound like I'm annoyed or something, but it's probably just the way i put things in words.. it's not how i feel. You just never replied ...
by LordAwsomeness
May 12th, 2018, 12:50 am
Forum: WML Workshop
Topic: How do you remove the undead trait?
Replies: 9
Views: 172

Re: How do you remove the undead trait?

enclave wrote:
May 11th, 2018, 11:58 pm
{CLEAR_VARIABLE hero.modifications.trait}
Solved! Your CLEAR_VARIABLE worked!. Thank you all for your kind responses and help!
by LordAwsomeness
May 12th, 2018, 12:22 am
Forum: WML Workshop
Topic: How do you remove the undead trait?
Replies: 9
Views: 172

Re: How do you remove the undead trait?

enclave wrote:
May 12th, 2018, 12:11 am
Ravana wrote:
May 12th, 2018, 12:08 am
https://github.com/wesnoth/wesnoth/issues/2382 suggests rebuilding unit.
It might be one the examples I already shown, store unit and kill and then make new unit with [unit] in his place... if removing trait doesn't work.
Ill give it a shot! Thank you!
by LordAwsomeness
May 12th, 2018, 12:19 am
Forum: WML Workshop
Topic: How do you remove the undead trait?
Replies: 9
Views: 172

Re: How do you remove the undead trait?

To remove the trait after you store your unit the SECOND time, try to use {CLEAR_VARIABLE hero.modifications} or {CLEAR_VARIABLE hero.modifications.trait} or {CLEAR_VARIABLE hero.modifications[0].trait} and I'm not sure why you asking questions if later you finding answer somewhere else, because I ...
by LordAwsomeness
May 11th, 2018, 11:22 pm
Forum: WML Workshop
Topic: How do you remove the undead trait?
Replies: 9
Views: 172

How do you remove the undead trait?

Hi! I am having an issue with trying to remove the undead trait from a unit. In my current project I made use of the following macro: #define LA_HERO_STORE_CREATE TYPE [store_unit] [filter] side=$side_number canrecruit=yes [/filter] variable=hero kill=yes [/store_unit] {VARIABLE hero.variables.hero_...
by LordAwsomeness
May 11th, 2018, 1:14 pm
Forum: WML Workshop
Topic: How do you get a number and use it from sides having the same team name
Replies: 25
Views: 391

Re: How do you get a number and use it from sides having the same team name

Omg! the variable version is so easy!! You can also remove other choices of advancement as well!! like you can make a Dark Sorcerer only level up to a Lich! [event] name=post advance # id=dark_lord first_time_only=no [filter] id=dark_lord type=Lich x,y=$x1,$y1 [/filter] [store_unit] [filter] id=dark...
by LordAwsomeness
May 10th, 2018, 1:23 am
Forum: WML Workshop
Topic: How do you get a number and use it from sides having the same team name
Replies: 25
Views: 391

Re: How do you get a number and use it from sides having the same team name

Indeed ;) don't worry it happens to me all the time too... 1 little letter.. or sign.. and nothing works;) One more thing: do you perhaps know how to enable the ancient lich to advance from the lich? #ifdef ENABLE_ANCIENT_LICH [advancefrom] unit=Lich experience=250 [/advancefrom] #endif this is in ...
by LordAwsomeness
May 10th, 2018, 1:06 am
Forum: WML Workshop
Topic: How do you get a number and use it from sides having the same team name
Replies: 25
Views: 391

Re: How do you get a number and use it from sides having the same team name

the quotation marks shouldnt matter.. I hope you are refreshing your code with f5 after modifying? or restarting wesnoth... In any case... if this simple thing doesn't work then use {FOREACH}... if you dont like to use {FOREACH} then read on how to use lua (https://wiki.wesnoth.org/LuaWML/Sides#wes...
by LordAwsomeness
May 10th, 2018, 12:57 am
Forum: WML Workshop
Topic: How do you get a number and use it from sides having the same team name
Replies: 25
Views: 391

Re: How do you get a number and use it from sides having the same team name

no I'm editing the scenario by hand, i set the team_name myself. is it perhaps the quotation marks that are on the on the team_name="Refugees" ?? and hopefully it will after just a tad more tweeking. I really do appreciate your help :) --- heres snippets of the code from the scenario toplevel and th...
by LordAwsomeness
May 10th, 2018, 12:51 am
Forum: WML Workshop
Topic: How do you get a number and use it from sides having the same team name
Replies: 25
Views: 391

Re: How do you get a number and use it from sides having the same team name

Then you probably only need to do: [store_side] team_name=Refugees variable=player_count [/store_side] {VARIABLE_OP la_devilry multiply $player_count.length} Keep in mind it may be 0, then la_devilry may be 0 too... whatever it is.. 1) There will be some 3 years until 1.15 (am I wrong?), you probab...
by LordAwsomeness
May 10th, 2018, 12:40 am
Forum: WML Workshop
Topic: How do you get a number and use it from sides having the same team name
Replies: 25
Views: 391

Re: How do you get a number and use it from sides having the same team name

This would be more correct as far as [foreach] goes, though I'm not sure if it's exactly what you want: [store_side] team_name=Refugees variable=players [/store_side] [foreach] array=players variable=player [do] {VARIABLE_OP la_devilry multiply $la_devilry_bonus} [/do] [/foreach] {CLEAR_VARIABLE pl...
by LordAwsomeness
May 10th, 2018, 12:36 am
Forum: WML Workshop
Topic: How do you get a number and use it from sides having the same team name
Replies: 25
Views: 391

Re: How do you get a number and use it from sides having the same team name

I actually only want to store sides with the team_name refugees. I need to get a number from it and use a {VARIABLE_OP la_devilry multiply $teamnumber} so that the devilry variable bonus is increased by the number of players with the team_name=Refugees. [store_side] team_name=Refugees variable=playe...
by LordAwsomeness
May 9th, 2018, 11:42 pm
Forum: WML Workshop
Topic: How do you get a number and use it from sides having the same team name
Replies: 25
Views: 391

How do you get a number and use it from sides having the same team name

Hi I am attempting to store sides in order to count how many players there are on one team in order to give a bonus to the other player. I am not sure how to use the foreach syntax to do this properly. I have been looking over the conditional actions (https://wiki.wesnoth.org/ConditionalActionsWML) ...
by LordAwsomeness
May 9th, 2018, 7:32 pm
Forum: WML Workshop
Topic: Is there a command that forces a unit to level up?
Replies: 2
Views: 98

Re: Is there a command that forces a unit to level up?

You could manually set the unit's experience to its max experience. It'll level up when unstored. [store_unit] [filter] your unit [/filter] variable=adv kill=yes [/store_unit] {VARIABLE adv.experience $adv.max_experience} [unstore_unit] variable=adv [/unstore_unit] For forcing it to level to anothe...