Author Topic: How to post scripts so they show up properly  (Read 385 times)

Legacy_UnrealJedi

  • Full Member
  • ***
  • Posts: 226
  • Karma: +0/-0
How to post scripts so they show up properly
« on: October 06, 2013, 11:02:13 pm »


               Can somebody show me how to post scripts so they show up neatly and not all jumbled together?


Thanks! 
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
How to post scripts so they show up properly
« Reply #1 on: October 06, 2013, 11:11:52 pm »


                it is a painstaking process to get scripts to format properly on the forum.
Rather than waste your time with that, I suggest posting to pastebin (or a similar service) and linking to your paste.
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
How to post scripts so they show up properly
« Reply #2 on: October 07, 2013, 04:55:57 am »


               virusman (I think?) has a pastebin clone that color codes for NWScript.
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
How to post scripts so they show up properly
« Reply #3 on: October 07, 2013, 10:49:27 am »


               I'm not sure why everyone has problems posting scripts. Just don't use the quick reply. Use the "...or use the standard form" next to the "Submit" button below. Then just copy and paste your script. That's all I do anyway. I'm using Firefox. Not sure if that makes a difference at all.

example (copy and pasted script):


void main()
{
    // Get the creature who triggered this event.
    object oPC = GetEnteringObject();
    effect eVFX;
    effect eDamage;
    string sTag = GetTag(GetItemInSlot(INVENTORY_SLOT_CHEST, oPC));
    // Only fire for (real) PCs.
    if ( !GetIsPC(oPC)  ||  GetIsDMPossessed(oPC) ) return;
    // If the PC does not have the item "coldprotectarmorlight" equipped.
    if ( sTag != "coldprotectarmorlight" ||
         sTag != "" ||
         sTag != "" ||
         sTag != "" ||
         sTag != "")
    {
        // Cause damage.
        eDamage = EffectDamage(1, DAMAGE_TYPE_COLD);
        eVFX = EffectVisualEffect(VFX_COM_HIT_FROST);
        ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oPC);
        ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX   , oPC);
    }
}
               
               

               


                     Modifié par GhostOfGod, 07 octobre 2013 - 09:49 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
How to post scripts so they show up properly
« Reply #4 on: October 07, 2013, 12:57:53 pm »


               If you are using Chrome,  use a differant browser.  I have not found an easy way with Chrome.
               
               

               
            

Legacy_UnrealJedi

  • Full Member
  • ***
  • Posts: 226
  • Karma: +0/-0
How to post scripts so they show up properly
« Reply #5 on: October 07, 2013, 07:42:24 pm »


               GoG is correct. Just use the standard form and the script looks perfect. I copied and pasted a script under my topic 'Figurine of Wondrous Power'. (I need help with that script, BTW, as an aside :-)). I pasted it using my Android phone and with Google Chrome.

Thanks GoG.