forums | blogs | polls | tutorials | downloads | rules | help

When posting code to a forum

I have noted that when some people post code to a forum the forum width changes and one is forced to scroll left and right to read everything in each post. The reason is that people are not formatting the data correctly. They will often times just post the template and not tell the site that it is code or they will use the wrong formatting option such as (code)template(/code). The correct formating option for posting a template or other software code is <code>template</code>

If you have questions about how to format text, images, or code refer to the More information about formatting options located above the submit button on the screen used to write your post or read the following topic http://www.siegetheday.org/?q=filter/tips

There's something strange, using the [code] tag a [*] won't be displayed: :o

	[common]
	{
		[instance_triggers]
		{
// HERE SHOULD IT BE vvvvvvvvvvvvvvvv
			[*]
			{
// HERE SHOULD IT BE ^^^^^^^^^^^^^^^^

				action* = send_world_message("we_req_activate",0x03500047,0f,"default","every",0,0);
			  b can_self_destruct = true;
				condition* = receive_world_message("we_killed",0,"on_first_message");
			  f delay = 0.000000;
			  b flip_flop = false;
			  b multi_player = true;
			  b no_save_trig_bits = true;
			  b no_trig_bits = false;
				occupants_group = ;
			  f reset_duration = 0.000000;
			  b single_player = true;
			  b single_shot = true;
			  b start_active = true;
			}
			[*]
			{
				action* = send_world_message("we_req_activate",0x03500047,0f,"default","every",0,0);
			  b can_self_destruct = true;
				condition* = receive_world_message("we_exploded",0,"on_first_message");
			  f delay = 0.000000;
			  b flip_flop = false;
			  b multi_player = true;
			  b no_save_trig_bits = true;
			  b no_trig_bits = false;
				occupants_group = ;
			  f reset_duration = 0.000000;
			  b single_player = true;
			  b single_shot = true;
			  b start_active = true;
			}
		}
	}

Does this mess up with the BBCode for listings possibly?
Like this however it's a bit unfortunate if somebody wants to copy+paste gas code. I don't think DS1/2 can stand this. Sad

That's no good. It really shouldn't parse anything within that block. I see that the second instance worked fine, but that makes it a bit more strange... Does using HTML give the same effect?

sol77 wrote:
That's no good. It really shouldn't parse anything within that block. I see that the second instance worked fine, but that makes it a bit more strange... Does using HTML give the same effect?

With <code> it's worse as you may see, totally strange parsing, there is even a listing dot now... :o
Also it seems the effect of <code> gets lost after the intended [*] while ignoring line-breaks above. Beside of it the browser ignores the 'white spaces' then - technically compatible for DS1/2 though but not really for the human eye.

 

 

[common] { [instance_triggers] { // HERE SHOULD IT BE vvvvvvvvvvvvvvvv [*] { // HERE SHOULD IT BE ^^^^^^^^^^^^^^^^

action* = send_world_message("we_req_activate",0x03500047,0f,"default","every",0,0);
b can_self_destruct = true;
condition* = receive_world_message("we_killed",0,"on_first_message");
f delay = 0.000000;
b flip_flop = false;
b multi_player = true;
b no_save_trig_bits = true;
b no_trig_bits = false;
occupants_group = ;
f reset_duration = 0.000000;
b single_player = true;
b single_shot = true;
b start_active = true;
}
[*]
{
action* = send_world_message("we_req_activate",0x03500047,0f,"default","every",0,0);
b can_self_destruct = true;
condition* = receive_world_message("we_exploded",0,"on_first_message");
f delay = 0.000000;
b flip_flop = false;
b multi_player = true;
b no_save_trig_bits = true;
b no_trig_bits = false;
occupants_group = ;
f reset_duration = 0.000000;
b single_player = true;
b single_shot = true;
b start_active = true;
}
}
}

I guess it is time to replace the software with a new version. Anyone up for finding me the database schematics for Drupal 4 and 7?

I was looking at the different code listings that cause the screen to go wide and it appears that any code that runs past the gray line on the expanded skritpad screen causes the site page to go as wide as the line. So both SkritPad and the site do not have a line wrap feature. The following was done using SkritPad

////////////////////////////////
// SUMMON catdryad
[t:template,n:base_spell_summon_catdryad]
{
  category_name = "magic";
  doc = "base spell summon catdryad";
  specializes = base_spell_combat;

  [common]
  {
    screen_name = "Base Summon catdryad";
    description = "Summons a deadly catdryad to fight for the caster.\n";
  }
  [gui]
  {
    active_icon = b_gui_ig_i_sp_catdryad;
    inventory_icon = b_gui_ig_i_sp_catdryad;
    mini_icon = b_gui_ig_m_chiclet-summon-up;
  }
  [magic]
  {
    apply_enchantments = false;
    cast_range = 10;
    cast_reload_delay = 3.0;
    cast_sub_animation = 4;
    caster_state_name = "Controlling";
    effect_duration = 600;
    is_one_shot = true;
    can_autocast = true;
    mana_cost = 0;
    mana_cost_modifier = ((#clamped_intel * 4.1) - 8) * ((100 - #Decreased_Mana_Cost) * .01);
    requires_line_of_sight = true;
    require_state_check = true;
    use_intel_level = true;
    speed_bias = 1;
    target_type_flags = tt_terrain;
    usage_context_flags = uc_passive;
    state_name = "spell_summon_catdryad";
  }
  [spell_summon_effects]
  {
    charge_ffx      = "ffx_spell_combat_summon_charge";
    start_ffx      = "ffx_spell_combat_summon";
    end_ffx        = "ffx_spell_combat_unsummon";
  }
  [spell_summon]
  {
    template_name      = catdryad_summon;
    description        = "Summoned Creature";
    caster_description = "Controlling Summoned";
    spawn_delay = 4.0;
  }
}

[t:template,n:spell_summon_catdryad_1]
{
  category_name = "magic";
  doc = "spell summon lesser catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Lesser Catdryad";
  }
  [gui]
  {
    item_level = 9;
  }
  [magic]
  {
    required_level = 9;
    max_intel = 112;  // 70 * 1.6
    max_level = 20;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 4;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_2]
{
  category_name = "magic";
  doc = "spell summon catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Catdryad";
  }
  [gui]
  {
    item_level = 24;
    active_icon = b_gui_ig_i_sp_catdryad02;
    inventory_icon = b_gui_ig_i_sp_catdryad02;
  }
  [magic]
  {
    required_level = 24;
    max_intel = 208;  // 130 * 1.6
    max_level = 40;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 7;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_3]
{
  category_name = "magic";
  doc = "spell summon greater catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Greater Catdryad";
  }
  [gui]
  {
    item_level = 45;
    active_icon = b_gui_ig_i_sp_catdryad03;
    inventory_icon = b_gui_ig_i_sp_catdryad03;
  }
  [magic]
  {
    required_level = 45;
    max_intel = 294;  // 184 * 1.6
    max_level = 58;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 10;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_4]
{
  category_name = "magic";
  doc = "spell summon paragon catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Paragon Catdryad";
  }
  [gui]
  {
    item_level = 64;
    active_icon = b_gui_ig_i_sp_catdryad04;
    inventory_icon = b_gui_ig_i_sp_catdryad04;
  }
  [magic]
  {
    required_level = 64;
    max_intel = 410;  // 256 * 1.6
    max_level = 82;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 12;
      }
          }
  }
}

Here is the same code done using the Windows WordPad

////////////////////////////////
// SUMMON catdryad
[t:template,n:base_spell_summon_catdryad]
{
  category_name = "magic";
  doc = "base spell summon catdryad";
  specializes = base_spell_combat;

  [common]
  {
    screen_name = "Base Summon catdryad";
    description = "Summons a deadly catdryad to fight for the caster.\n";
  }
  [gui]
  {
    active_icon = b_gui_ig_i_sp_catdryad;
    inventory_icon = b_gui_ig_i_sp_catdryad;
    mini_icon = b_gui_ig_m_chiclet-summon-up;
  }
  [magic]
  {
    apply_enchantments = false;
    cast_range = 10;
    cast_reload_delay = 3.0;
    cast_sub_animation = 4;
    caster_state_name = "Controlling";
    effect_duration = 600;
    is_one_shot = true;
    can_autocast = true;
    mana_cost = 0;
    mana_cost_modifier = ((#clamped_intel * 4.1) - 8) * ((100 - #Decreased_Mana_Cost) * .01);
    requires_line_of_sight = true;
    require_state_check = true;
    use_intel_level = true;
    speed_bias = 1;
    target_type_flags = tt_terrain;
    usage_context_flags = uc_passive;
    state_name = "spell_summon_catdryad";
  }
  [spell_summon_effects]
  {
    charge_ffx      = "ffx_spell_combat_summon_charge";
    start_ffx      = "ffx_spell_combat_summon";
    end_ffx        = "ffx_spell_combat_unsummon";
  }
  [spell_summon]
  {
    template_name      = catdryad_summon;
    description        = "Summoned Creature";
    caster_description = "Controlling Summoned";
    spawn_delay = 4.0;
  }
}

[t:template,n:spell_summon_catdryad_1]
{
  category_name = "magic";
  doc = "spell summon lesser catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Lesser Catdryad";
  }
  [gui]
  {
    item_level = 9;
  }
  [magic]
  {
    required_level = 9;
    max_intel = 112;  // 70 * 1.6
    max_level = 20;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 4;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_2]
{
  category_name = "magic";
  doc = "spell summon catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Catdryad";
  }
  [gui]
  {
    item_level = 24;
    active_icon = b_gui_ig_i_sp_catdryad02;
    inventory_icon = b_gui_ig_i_sp_catdryad02;
  }
  [magic]
  {
    required_level = 24;
    max_intel = 208;  // 130 * 1.6
    max_level = 40;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 7;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_3]
{
  category_name = "magic";
  doc = "spell summon greater catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Greater Catdryad";
  }
  [gui]
  {
    item_level = 45;
    active_icon = b_gui_ig_i_sp_catdryad03;
    inventory_icon = b_gui_ig_i_sp_catdryad03;
  }
  [magic]
  {
    required_level = 45;
    max_intel = 294;  // 184 * 1.6
    max_level = 58;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 10;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_4]
{
  category_name = "magic";
  doc = "spell summon paragon catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Paragon Catdryad";
  }
  [gui]
  {
    item_level = 64;
    active_icon = b_gui_ig_i_sp_catdryad04;
    inventory_icon = b_gui_ig_i_sp_catdryad04;
  }
  [magic]
  {
    required_level = 64;
    max_intel = 410;  // 256 * 1.6
    max_level = 82;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 12;
      }
          }
  }
}

Also the cool smiliey conflicts with the code 8) so should be removed from the list of smilies. It should be noted that I used [code] for both of the above templates. Here is what occurs when I use the <code> and change the 8) to 7).

//////////////////////////////// // SUMMON catdryad [t:template,n:base_spell_summon_catdryad] { category_name = "magic"; doc = "base spell summon catdryad"; specializes = base_spell_combat;

[common]
{
screen_name = "Base Summon catdryad";
description = "Summons a deadly catdryad to fight for the caster.\n";
}
[gui]
{
active_icon = b_gui_ig_i_sp_catdryad;
inventory_icon = b_gui_ig_i_sp_catdryad;
mini_icon = b_gui_ig_m_chiclet-summon-up;
}
[magic]
{
apply_enchantments = false;
cast_range = 10;
cast_reload_delay = 3.0;
cast_sub_animation = 4;
caster_state_name = "Controlling";
effect_duration = 600;
is_one_shot = true;
can_autocast = true;
mana_cost = 0;
mana_cost_modifier = ((#clamped_intel * 4.1) - 7) * ((100 - #Decreased_Mana_Cost) * .01);
requires_line_of_sight = true;
require_state_check = true;
use_intel_level = true;
speed_bias = 1;
target_type_flags = tt_terrain;
usage_context_flags = uc_passive;
state_name = "spell_summon_catdryad";
}
[spell_summon_effects]
{
charge_ffx = "ffx_spell_combat_summon_charge";
start_ffx = "ffx_spell_combat_summon";
end_ffx = "ffx_spell_combat_unsummon";
}
[spell_summon]
{
template_name = catdryad_summon;
description = "Summoned Creature";
caster_description = "Controlling Summoned";
spawn_delay = 4.0;
}
}

[t:template,n:spell_summon_catdryad_1]
{
category_name = "magic";
doc = "spell summon lesser catdryad";
specializes = base_spell_summon_catdryad;

[common]
{
screen_name = "Summon Lesser Catdryad";
}
[gui]
{
item_level = 9;
}
[magic]
{
required_level = 9;
max_intel = 112; // 70 * 1.6
max_level = 20;

[enchantments]
{
[*] this should be [*] not what is displayed it displays correct in the preview
{
alteration = alter_monster_level;
duration = #infinite;
value = #magic;
custom_effect = "summon_catdryad";
custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
}
[trasak_a_life]
{
alteration = alter_max_life;
description = "Life: ";
duration = #infinite;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[*] this should be [*] not what is displayed
{
alteration = alter_life;
duration = 1.0;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[trasak_b_armor]
{
alteration = alter_armor;
description = "Armor: ";
duration = #infinite;
value = 0.95 * #clamped_intel + 1.9;
}
[*] this should be [*] not what is displayed
{
alteration = alter_life_recovery_unit;
duration = #infinite;
multiply_value = true;
value = (1 + (#Increased_Summon_Regen * .01));
}
[*]
{ // Attack Duration = 2 seconds
alteration = alter_cmagic_damage_min;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
}
[*]
{
alteration = alter_cmagic_damage_max;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_damage]
{
alteration = alter_generic;
description = "Average Damage per Second: ";
duration = 0;
value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_life_steal]
{
alteration = alter_life_steal;
description = "% Health Steal";
duration = #infinite;
value = 4;
}
}
}
}

[t:template,n:spell_summon_catdryad_2]
{
category_name = "magic";
doc = "spell summon catdryad";
specializes = base_spell_summon_catdryad;

[common]
{
screen_name = "Summon Catdryad";
}
[gui]
{
item_level = 24;
active_icon = b_gui_ig_i_sp_catdryad02;
inventory_icon = b_gui_ig_i_sp_catdryad02;
}
[magic]
{
required_level = 24;
max_intel = 208; // 130 * 1.6
max_level = 40;

[enchantments]
{
[*]
{
alteration = alter_monster_level;
duration = #infinite;
value = #magic;
custom_effect = "summon_catdryad";
custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
}
[trasak_a_life]
{
alteration = alter_max_life;
description = "Life: ";
duration = #infinite;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[*]
{
alteration = alter_life;
duration = 1.0;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[trasak_b_armor]
{
alteration = alter_armor;
description = "Armor: ";
duration = #infinite;
value = 0.95 * #clamped_intel + 1.9;
}
[*]
{
alteration = alter_life_recovery_unit;
duration = #infinite;
multiply_value = true;
value = (1 + (#Increased_Summon_Regen * .01));
}
[*]
{ // Attack Duration = 2 seconds
alteration = alter_cmagic_damage_min;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
}
[*]
{
alteration = alter_cmagic_damage_max;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_damage]
{
alteration = alter_generic;
description = "Average Damage per Second: ";
duration = 0;
value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_life_steal]
{
alteration = alter_life_steal;
description = "% Health Steal";
duration = #infinite;
value = 7;
}
}
}
}

[t:template,n:spell_summon_catdryad_3]
{
category_name = "magic";
doc = "spell summon greater catdryad";
specializes = base_spell_summon_catdryad;

[common]
{
screen_name = "Summon Greater Catdryad";
}
[gui]
{
item_level = 45;
active_icon = b_gui_ig_i_sp_catdryad03;
inventory_icon = b_gui_ig_i_sp_catdryad03;
}
[magic]
{
required_level = 45;
max_intel = 294; // 184 * 1.6
max_level = 58;

[enchantments]
{
[*]
{
alteration = alter_monster_level;
duration = #infinite;
value = #magic;
custom_effect = "summon_catdryad";
custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
}
[trasak_a_life]
{
alteration = alter_max_life;
description = "Life: ";
duration = #infinite;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[*]
{
alteration = alter_life;
duration = 1.0;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[trasak_b_armor]
{
alteration = alter_armor;
description = "Armor: ";
duration = #infinite;
value = 0.95 * #clamped_intel + 1.9;
}
[*]
{
alteration = alter_life_recovery_unit;
duration = #infinite;
multiply_value = true;
value = (1 + (#Increased_Summon_Regen * .01));
}
[*]
{ // Attack Duration = 2 seconds
alteration = alter_cmagic_damage_min;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
}
[*]
{
alteration = alter_cmagic_damage_max;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_damage]
{
alteration = alter_generic;
description = "Average Damage per Second: ";
duration = 0;
value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_life_steal]
{
alteration = alter_life_steal;
description = "% Health Steal";
duration = #infinite;
value = 10;
}
}
}
}

[t:template,n:spell_summon_catdryad_4]
{
category_name = "magic";
doc = "spell summon paragon catdryad";
specializes = base_spell_summon_catdryad;

[common]
{
screen_name = "Summon Paragon Catdryad";
}
[gui]
{
item_level = 64;
active_icon = b_gui_ig_i_sp_catdryad04;
inventory_icon = b_gui_ig_i_sp_catdryad04;
}
[magic]
{
required_level = 64;
max_intel = 410; // 256 * 1.6
max_level = 82;

[enchantments]
{
[*]
{
alteration = alter_monster_level;
duration = #infinite;
value = #magic;
custom_effect = "summon_catdryad";
custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
}
[trasak_a_life]
{
alteration = alter_max_life;
description = "Life: ";
duration = #infinite;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[*]
{
alteration = alter_life;
duration = 1.0;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[trasak_b_armor]
{
alteration = alter_armor;
description = "Armor: ";
duration = #infinite;
value = 0.95 * #clamped_intel + 1.9;
}
[*]
{
alteration = alter_life_recovery_unit;
duration = #infinite;
multiply_value = true;
value = (1 + (#Increased_Summon_Regen * .01));
}
[*]
{ // Attack Duration = 2 seconds
alteration = alter_cmagic_damage_min;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
}
[*]
{
alteration = alter_cmagic_damage_max;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_damage]
{
alteration = alter_generic;
description = "Average Damage per Second: ";
duration = 0;
value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_life_steal]
{
alteration = alter_life_steal;
description = "% Health Steal";
duration = #infinite;
value = 12;
}
}
}
}

As you can see this makes a mess of things too, although the screen width is correct it completely misses the [*] and if you copy the code back into skritpad or any text editor the [*] is missing.
Hope this provides some insight into the problem.

Elf

Let me open a file using skritpad and export it as an html document then try posting that. Which worked about as well as anything else. The screen width was okay but the other errors where there missing lines of code and the smilies appear where they should not be.

Then I said to myself since skritpad allows an export as an .rtf file try that. Although that looked fine before I copied it here once here it was again way to wide.

Then I had a brain storm. open the rtf file and replace the [*] with the actual ASCII code and it worked. as you can see below.

////////////////////////////////
// SUMMON catdryad
[t:template,n:base_spell_summon_catdryad]
{
  category_name = "magic";
  doc = "base spell summon catdryad";
  specializes = base_spell_combat;

  [common]
  {
    screen_name = "Base Summon catdryad";
    description = "Summons a deadly catdryad to fight for the caster.\n";
  }
  [gui]
  {
    active_icon = b_gui_ig_i_sp_catdryad;
    inventory_icon = b_gui_ig_i_sp_catdryad;
    mini_icon = b_gui_ig_m_chiclet-summon-up;
  }
  [magic]
  {
    apply_enchantments = false;
    cast_range = 10;
    cast_reload_delay = 3.0;
    cast_sub_animation = 4;
    caster_state_name = "Controlling";
    effect_duration = 600;
    is_one_shot = true;
    can_autocast = true;
    mana_cost = 0;
    mana_cost_modifier = ((#clamped_intel * 4.1) - 8) * ((100 - #Decreased_Mana_Cost) * .01);
    requires_line_of_sight = true;
    require_state_check = true;
    use_intel_level = true;
    speed_bias = 1;
    target_type_flags = tt_terrain;
    usage_context_flags = uc_passive;
    state_name = "spell_summon_catdryad";
  }
  [spell_summon_effects]
  {
    charge_ffx      = "ffx_spell_combat_summon_charge";
    start_ffx      = "ffx_spell_combat_summon";
    end_ffx        = "ffx_spell_combat_unsummon";
  }
  [spell_summon]
  {
    template_name      = catdryad_summon;
    description        = "Summoned Creature";
    caster_description = "Controlling Summoned";
    spawn_delay = 4.0;
  }
}

[t:template,n:spell_summon_catdryad_1]
{
  category_name = "magic";
  doc = "spell summon lesser catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Lesser Catdryad";
  }
  [gui]
  {
    item_level = 9;
  }
  [magic]
  {
    required_level = 9;
    max_intel = 112;  // 70 * 1.6
    max_level = 20;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 4;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_2]
{
  category_name = "magic";
  doc = "spell summon catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Catdryad";
  }
  [gui]
  {
    item_level = 24;
    active_icon = b_gui_ig_i_sp_catdryad02;
    inventory_icon = b_gui_ig_i_sp_catdryad02;
  }
  [magic]
  {
    required_level = 24;
    max_intel = 208;  // 130 * 1.6
    max_level = 40;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 7;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_3]
{
  category_name = "magic";
  doc = "spell summon greater catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Greater Catdryad";
  }
  [gui]
  {
    item_level = 45;
    active_icon = b_gui_ig_i_sp_catdryad03;
    inventory_icon = b_gui_ig_i_sp_catdryad03;
  }
  [magic]
  {
    required_level = 45;
    max_intel = 294;  // 184 * 1.6
    max_level = 58;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 10;
      }
        }
  }
}

[t:template,n:spell_summon_catdryad_4]
{
  category_name = "magic";
  doc = "spell summon paragon catdryad";
  specializes = base_spell_summon_catdryad;

  [common]
  {
    screen_name = "Summon Paragon Catdryad";
  }
  [gui]
  {
    item_level = 64;
    active_icon = b_gui_ig_i_sp_catdryad04;
    inventory_icon = b_gui_ig_i_sp_catdryad04;
  }
  [magic]
  {
    required_level = 64;
    max_intel = 410;  // 256 * 1.6
    max_level = 82;

    [enchantments]
    {
      [*]
      {
        alteration = alter_monster_level;
        duration = #infinite;
        value = #magic;
        custom_effect = "summon_catdryad";
        custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
      }
      [trasak_a_life]
      {
        alteration = alter_max_life;
        description = "Life: ";
        duration = #infinite;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [*]
      {
        alteration = alter_life;
        duration = 1.0;
        value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
      }
      [trasak_b_armor]
      {
        alteration = alter_armor;
        description = "Armor: ";
        duration = #infinite;
        value = 0.95 * #clamped_intel + 1.9;
      }
      [*]
      {
        alteration = alter_life_recovery_unit;
        duration = #infinite;
        multiply_value = true;
        value = (1 + (#Increased_Summon_Regen * .01));
      }
      [*]
      {  // Attack Duration = 2 seconds
        alteration = alter_cmagic_damage_min;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
      }
      [*]
      {
        alteration = alter_cmagic_damage_max;
        duration = #infinite;
        value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_damage]
      {
        alteration = alter_generic;
        description = "Average Damage per Second: ";
        duration = 0;
        value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
      }
      [trasak_c_life_steal]
      {
        alteration = alter_life_steal;
        description = "% Health Steal";
        duration = #infinite;
        value = 12;
      }
          }
  }
}

Then I tried using the <code> and other than the nasty cool smilie messing things up it appears to be okay.

//////////////////////////////// // SUMMON catdryad [t:template,n:base_spell_summon_catdryad] { category_name = "magic"; doc = "base spell summon catdryad"; specializes = base_spell_combat;

[common]
{
screen_name = "Base Summon catdryad";
description = "Summons a deadly catdryad to fight for the caster.\n";
}
[gui]
{
active_icon = b_gui_ig_i_sp_catdryad;
inventory_icon = b_gui_ig_i_sp_catdryad;
mini_icon = b_gui_ig_m_chiclet-summon-up;
}
[magic]
{
apply_enchantments = false;
cast_range = 10;
cast_reload_delay = 3.0;
cast_sub_animation = 4;
caster_state_name = "Controlling";
effect_duration = 600;
is_one_shot = true;
can_autocast = true;
mana_cost = 0;
mana_cost_modifier = ((#clamped_intel * 4.1) - 8) * ((100 - #Decreased_Mana_Cost) * .01);
requires_line_of_sight = true;
require_state_check = true;
use_intel_level = true;
speed_bias = 1;
target_type_flags = tt_terrain;
usage_context_flags = uc_passive;
state_name = "spell_summon_catdryad";
}
[spell_summon_effects]
{
charge_ffx = "ffx_spell_combat_summon_charge";
start_ffx = "ffx_spell_combat_summon";
end_ffx = "ffx_spell_combat_unsummon";
}
[spell_summon]
{
template_name = catdryad_summon;
description = "Summoned Creature";
caster_description = "Controlling Summoned";
spawn_delay = 4.0;
}
}

[t:template,n:spell_summon_catdryad_1]
{
category_name = "magic";
doc = "spell summon lesser catdryad";
specializes = base_spell_summon_catdryad;

[common]
{
screen_name = "Summon Lesser Catdryad";
}
[gui]
{
item_level = 9;
}
[magic]
{
required_level = 9;
max_intel = 112; // 70 * 1.6
max_level = 20;

[enchantments]
{
[*]
{
alteration = alter_monster_level;
duration = #infinite;
value = #magic;
custom_effect = "summon_catdryad";
custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
}
[trasak_a_life]
{
alteration = alter_max_life;
description = "Life: ";
duration = #infinite;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[*]
{
alteration = alter_life;
duration = 1.0;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[trasak_b_armor]
{
alteration = alter_armor;
description = "Armor: ";
duration = #infinite;
value = 0.95 * #clamped_intel + 1.9;
}
[*]
{
alteration = alter_life_recovery_unit;
duration = #infinite;
multiply_value = true;
value = (1 + (#Increased_Summon_Regen * .01));
}
[*]
{ // Attack Duration = 2 seconds
alteration = alter_cmagic_damage_min;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
}
[*]
{
alteration = alter_cmagic_damage_max;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_damage]
{
alteration = alter_generic;
description = "Average Damage per Second: ";
duration = 0;
value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_life_steal]
{
alteration = alter_life_steal;
description = "% Health Steal";
duration = #infinite;
value = 4;
}
}
}
}

[t:template,n:spell_summon_catdryad_2]
{
category_name = "magic";
doc = "spell summon catdryad";
specializes = base_spell_summon_catdryad;

[common]
{
screen_name = "Summon Catdryad";
}
[gui]
{
item_level = 24;
active_icon = b_gui_ig_i_sp_catdryad02;
inventory_icon = b_gui_ig_i_sp_catdryad02;
}
[magic]
{
required_level = 24;
max_intel = 208; // 130 * 1.6
max_level = 40;

[enchantments]
{
[*]
{
alteration = alter_monster_level;
duration = #infinite;
value = #magic;
custom_effect = "summon_catdryad";
custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
}
[trasak_a_life]
{
alteration = alter_max_life;
description = "Life: ";
duration = #infinite;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[*]
{
alteration = alter_life;
duration = 1.0;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[trasak_b_armor]
{
alteration = alter_armor;
description = "Armor: ";
duration = #infinite;
value = 0.95 * #clamped_intel + 1.9;
}
[*]
{
alteration = alter_life_recovery_unit;
duration = #infinite;
multiply_value = true;
value = (1 + (#Increased_Summon_Regen * .01));
}
[*]
{ // Attack Duration = 2 seconds
alteration = alter_cmagic_damage_min;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
}
[*]
{
alteration = alter_cmagic_damage_max;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_damage]
{
alteration = alter_generic;
description = "Average Damage per Second: ";
duration = 0;
value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_life_steal]
{
alteration = alter_life_steal;
description = "% Health Steal";
duration = #infinite;
value = 7;
}
}
}
}

[t:template,n:spell_summon_catdryad_3]
{
category_name = "magic";
doc = "spell summon greater catdryad";
specializes = base_spell_summon_catdryad;

[common]
{
screen_name = "Summon Greater Catdryad";
}
[gui]
{
item_level = 45;
active_icon = b_gui_ig_i_sp_catdryad03;
inventory_icon = b_gui_ig_i_sp_catdryad03;
}
[magic]
{
required_level = 45;
max_intel = 294; // 184 * 1.6
max_level = 58;

[enchantments]
{
[*]
{
alteration = alter_monster_level;
duration = #infinite;
value = #magic;
custom_effect = "summon_catdryad";
custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
}
[trasak_a_life]
{
alteration = alter_max_life;
description = "Life: ";
duration = #infinite;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[*]
{
alteration = alter_life;
duration = 1.0;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[trasak_b_armor]
{
alteration = alter_armor;
description = "Armor: ";
duration = #infinite;
value = 0.95 * #clamped_intel + 1.9;
}
[*]
{
alteration = alter_life_recovery_unit;
duration = #infinite;
multiply_value = true;
value = (1 + (#Increased_Summon_Regen * .01));
}
[*]
{ // Attack Duration = 2 seconds
alteration = alter_cmagic_damage_min;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
}
[*]
{
alteration = alter_cmagic_damage_max;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_damage]
{
alteration = alter_generic;
description = "Average Damage per Second: ";
duration = 0;
value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_life_steal]
{
alteration = alter_life_steal;
description = "% Health Steal";
duration = #infinite;
value = 10;
}
}
}
}

[t:template,n:spell_summon_catdryad_4]
{
category_name = "magic";
doc = "spell summon paragon catdryad";
specializes = base_spell_summon_catdryad;

[common]
{
screen_name = "Summon Paragon Catdryad";
}
[gui]
{
item_level = 64;
active_icon = b_gui_ig_i_sp_catdryad04;
inventory_icon = b_gui_ig_i_sp_catdryad04;
}
[magic]
{
required_level = 64;
max_intel = 410; // 256 * 1.6
max_level = 82;

[enchantments]
{
[*]
{
alteration = alter_monster_level;
duration = #infinite;
value = #magic;
custom_effect = "summon_catdryad";
custom_effect_skrit = world\global\enchantments\actor_enchant.skrit?enchanted_ffx=ffx_spell_summon_creatureFX;
}
[trasak_a_life]
{
alteration = alter_max_life;
description = "Life: ";
duration = #infinite;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[*]
{
alteration = alter_life;
duration = 1.0;
value = (2.7 * #clamped_intel + 23) * (1 + (#Increased_Summon_Life * .01));
}
[trasak_b_armor]
{
alteration = alter_armor;
description = "Armor: ";
duration = #infinite;
value = 0.95 * #clamped_intel + 1.9;
}
[*]
{
alteration = alter_life_recovery_unit;
duration = #infinite;
multiply_value = true;
value = (1 + (#Increased_Summon_Regen * .01));
}
[*]
{ // Attack Duration = 2 seconds
alteration = alter_cmagic_damage_min;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 0.75) * (1 + (#Increased_Summon_Damage * .01));
}
[*]
{
alteration = alter_cmagic_damage_max;
duration = #infinite;
value = (((#clamped_intel * 0.17) + 0.33) * 2.0 * 1.25) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_damage]
{
alteration = alter_generic;
description = "Average Damage per Second: ";
duration = 0;
value = ((#clamped_intel * 0.17) + 0.33) * (1 + (#Increased_Summon_Damage * .01));
}
[trasak_c_life_steal]
{
alteration = alter_life_steal;
description = "% Health Steal";
duration = #infinite;
value = 12;
}
}
}
}

So in the translation from preview to what is actually displayed on the site something happens to change the ASCII code.

...I think I begin to understand.
It seems there are 2 matters currently, one because of the [*], the other because of the forum expansion due to long code lines.

Note maybe, in my old Firefox the [code] tag adds a useful/required horizontal scroll-bar, that's why i didn't realize the 2nd matter at all so far. :o

 
Aaccidentally I have seen now that in Opera the horizontal scroll-bar is missing - forcing the right side of forum to expand outside the screen. So instead of the scroll-bar for posted code only you will get a scroll-bar for the whole the forum and all posts, making it painful to read. Sad

I can't tell you anything about the I.E. (it's broken with me) or layout browser, right now however both [code] and <code> have significant drawbacks.

saving the code as a text file. then linking it to the site. I am looking into some sites that are specifically for posting code and will let you know what I discover.

lili

Text posted inside a CODE block is not supposed to wrap automatically long lines. Because some language consider each line independently and so the form of the text must not change to display the code as it appears originally. There is also the issue of formatted comments inside code that get messed up if auto-wrapping occurs.

The problem that you are describing happens when the text inside the CODE block contains very long lines that does not fit inside the website layout.
What should however appear in such context is that a horizontal scroll bar should appear inside the CODE block, or alternatively for the post or thread.