final version of the wml code

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
Stosswelle
Posts: 166
Joined: June 4th, 2004, 8:18 pm
Location: Atlanta, GA
Contact:

final version of the wml code

Post by Stosswelle »

this is the last thing im changing that ogre code to
however, it says it cannot find the end tags such as [/message] and says it finds [/unit] or [/multiplayer] instead
sometimes it even causes errors in other maps included in the game to pop up even though there is nothing wrong with them
because there is nothing wrong with the code, i need confirmation that this is a bug in the game

Code: Select all

#define FINDOGRE xl yl ogrename ogreid
[event]
name=moveto
[filter]
  x={xl}
  y={yl}
[/filter]
[command]
[kill]
  [filter]
  x={xl}
  y={yl}
  [/filter]
[/kill]
[unit]
  type=Ogre
  description={ogrename}
  x={xl}
  y={yl}
  side=$side_number
  [modifications]
   [trait]
    id=strongandresilientandinvisible
    [effect]
     apply_to=hitpoints
     increase_total=12
     heal_full=yes
    [/effect]
    [effect]
     apply_to=attack
     range=short
     increase_damage=2
    [/effect]
    [effect]
     apply_to=status
     add=ambush,nightstalk
    [/effect]
   [/trait]
  [/modifications]
[/unit]
[message]
  id={ogreid}
  description={ogrename}
  message="Player $side_number has sacrificed a unit to enlist the aid of a temporarily invisible Ogre!"
[/message]
[/command]
[/event]
#enddef

{FINDOGRE 13 14 Thud ogre1}
{FINDOGRE 18 10 Crack ogre2}
{FINDOGRE 8 9 Smash ogre3}
{FINDOGRE 20 13 Slam ogre4}
{FINDOGRE 14 11 Boom ogre5}
Hard/Melodic Trance, other Electronica:
http://www.musicv2.com/artist/stosswelle
Play Blood Series Maps!
--- ~WAY~ We Are Yousnoth---
<Li`sar> he likes it when i stand up with the remote held high "I am the princess"
Dacyn
Posts: 1855
Joined: May 1st, 2004, 9:34 am
Location: Texas

Re: final version of the wml code

Post by Dacyn »

BTW there is one bug in the code:

Code: Select all

[kill]
  [filter]
  x={xl}
  y={yl}
  [/filter]
[/kill]
should be

Code: Select all

[kill]
x={xl}
y={yl}
[/kill]
Stosswelle
Posts: 166
Joined: June 4th, 2004, 8:18 pm
Location: Atlanta, GA
Contact:

Post by Stosswelle »

code with dacyn fix

Code: Select all

#define FINDOGRE xl yl ogrename ogreid
[event]
name=moveto
[filter]
  x={xl}
  y={yl}
[/filter]
[command]
[kill]
  x={xl}
  y={yl}
[/kill]
[/command]
[unit]
  type=Ogre
  description={ogrename}
  x={xl}
  y={yl}
  side=$side_number
  [modifications]
   [trait]
    id=strongandresilientandinvisible
    [effect]
     apply_to=hitpoints
     increase_total=12
     heal_full=yes
    [/effect]
    [effect]
     apply_to=attack
     range=short
     increase_damage=2
    [/effect]
    [effect]
     apply_to=status
     add=ambush,nightstalk
    [/effect]
   [/trait]
  [/modifications]
[/unit]
[message]
  id={ogreid}
  description={ogrename}
  message="Player $side_number has sacrificed a unit to enlist the aid of a temporarily invisible Ogre!"
[/message]
[/event]
#enddef

{FINDOGRE 13 14 Thud ogre1}
{FINDOGRE 18 10 Crack ogre2}
{FINDOGRE 8 9 Smash ogre3}
{FINDOGRE 20 13 Slam ogre4}
{FINDOGRE 14 11 Boom ogre5}
error message on loading multi attempt:
ForestofFear.cfg 1: found illegal end tag '/multiplayer', at end of 'message'
about to report as bug in game
Hard/Melodic Trance, other Electronica:
http://www.musicv2.com/artist/stosswelle
Play Blood Series Maps!
--- ~WAY~ We Are Yousnoth---
<Li`sar> he likes it when i stand up with the remote held high "I am the princess"
Invisible Philosopher
Posts: 873
Joined: July 4th, 2004, 9:14 pm
Location: My imagination
Contact:

Post by Invisible Philosopher »

Is increasing HP by 12 intentional? A normal strong and resilient unit would get 2 + 7 = 9 extra HP, not 12.
Play a Silver Mage in the Wesvoid campaign.
Post Reply