Time control!
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Time control!
I was planning some time control magic to one of my factions.
I was thinkin that unit with "Time control" could when ever you want to skip time of the day in cost of a gold...
for example: afternoon -> Dusk etc.
Other one would be weapon ability that also damages enemies xp (runing enemies memories back in time...)
Are these abilities possible?
I myself am pitiful with the WML... (the only thing thats hard for making factions..)
I was thinkin that unit with "Time control" could when ever you want to skip time of the day in cost of a gold...
for example: afternoon -> Dusk etc.
Other one would be weapon ability that also damages enemies xp (runing enemies memories back in time...)
Are these abilities possible?
I myself am pitiful with the WML... (the only thing thats hard for making factions..)
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: Time control!
Yep.Rozard wrote:I was thinkin that unit with "Time control" could when ever you want to skip time of the day in cost of a gold...
for example: afternoon -> Dusk etc.
You could use an event-driven ability with a turn 1 event setting a menu item which fires [modify_turns]current="$($turn_number+1)"
(untested).
Yep. You could use an event-driven ability with an attacker hits event which modifies the attacked unit's xp (probably something like {VARIABLE second_unit.experience=0} and [unstore_unit]variable=second_unit, which just removes all experience (untested)).Rozard wrote:Other one would be weapon ability that also damages enemies xp (runing enemies memories back in time...)
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Re: Time control!
For the second question, if you had 1.9 you could do Disclamer: untested
Code: Select all
[modify_unit]
[filter]
id=$second_unit
[/filter]
experience=0 #or any other number
[/modify_unit]
Re: Time control!
That'd always set the experience to that number. And $second_unit is wrong. Try this or Anonymissimus' option.
Code: Select all
[modify_unit]
[filter]
id=$second_unit.id
[/filter]
experience="$($second_unit.experience-1)" #or any other number
[/modify_unit]
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
Re: Time control!
Aww... sounds hard... I can try making exp lowering WML with your advices...
But that time control ability is bit open right now...
Wouldnt this event-driven ability make turns run?
I mean, if there where a time limit...
But that time control ability is bit open right now...
Wouldnt this event-driven ability make turns run?
I mean, if there where a time limit...
Re: Time control!
Yes, it would. To remedy you could put add=1 into the [modify_turns] bit.
Re: Time control!
Hmm... I think I understand that...matsjoyce wrote:Yes, it would. To remedy you could put add=1 into the [modify_turns] bit.
Btw, how much should this cost? 30 gold? so with 60 gold you can jump over the day/night time?