URL:
  <http://gna.org/bugs/?23914>

                 Summary: custom [effect]s
                 Project: Battle for Wesnoth
            Submitted by: None
            Submitted on: Mi 30 Sep 2015 16:37:18 UTC
                Category: Feature Request
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.13
        Operating System:  

    _______________________________________________________

Details:

It should be possible to create custom [effect]s (apply_to).
A possible syntax to create new [effect]s could be this:

function wesnoth.effects.set_variable(unit, cfg)
 unit.variables[cfg.name] = cfg.value
end


which can then be used like this:


[effect]
 apply_to = set_variable
 name = varname
 value = 5
[/effect]






    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?23914>

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to