dummy events
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.
dummy events
It would be nice if you could trigger events by WML... its somewhat hard to explain, so I'll give an example.
You want an event to fire if someone moves somewhere OR you kill someone. This is currently possible, but in a hacky and long-winded way. With this feature, you could:
(pseudocode)
It would be really useful to either have this, or have an event triggerable in multiple ways (so, [event] name=moveto,die), and this way seems more possible.
You want an event to fire if someone moves somewhere OR you kill someone. This is currently possible, but in a hacky and long-winded way. With this feature, you could:
(pseudocode)
Code: Select all
[event]
name=moveto
[filter]
blah blah blah
[/filter]
[trigger_event]
name=ithappens
[/trigger_event]
[/event]
[event]
name=die
[filter]
blah blah blah
[/filter]
[trigger_event]
name=ithappens
[/trigger_event]
[/event]
[event]
name=ithappens
blah blah blah
[/event]
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
Yeah, but that takes more code and slows down the processor.scott wrote:Make a macro.
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
Correction: it takes more WML but less code and slows down the preprocessor. I'm all for extending WML to provide new functionality. Either way you have to make 2 events. The idea where name= takes a list is intriguing, but there would be problems where the filters, filter seconds, unit, second unit, x1,y1, and x2,y2 have conflicting meanings.turin wrote:Yeah, but that takes more code and slows down the processor.scott wrote:Make a macro.
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.
Err, right. Anyway, just a suggstion for if a coder wants to implement it. I thought of it while coding a scenario and finding it really frustrating to have to duplicate hundreds of lines of WML (I have a macro-phobia, so I didn't use any).scott wrote:Correction: it takes more WML but less code and slows down the preprocessor. I'm all for extending WML to provide new functionality. Either way you have to make 2 events. The idea where name= takes a list is intriguing, but there would be problems where the filters, filter seconds, unit, second unit, x1,y1, and x2,y2 have conflicting meanings.
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
I noticed. I'm a macrophiliac.turin wrote:(I have a macro-phobia, so I didn't use any).
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.
*stops in his stroll*
You guys and your funky New Age diets.
*resumes strolling*
You guys and your funky New Age diets.
*resumes strolling*
Cuyo Quiz,where madness meets me 
Turn on, tune in, fall out.
"I know that, but every single person nags about how negative turin is; it should be in the FPI thread "Turin should give positive comments" =)"-Neorice,23 Sep 2004

Turn on, tune in, fall out.
"I know that, but every single person nags about how negative turin is; it should be in the FPI thread "Turin should give positive comments" =)"-Neorice,23 Sep 2004