Can somebody show me how to post scripts so they show up neatly and not all jumbled together?
Thanks!
How to post scripts so they show up properly
Débuté par
UnrealJedi
, oct. 06 2013 10:02
#1
Posté 06 octobre 2013 - 10:02
#3
Posté 07 octobre 2013 - 03:55
#4
Posté 07 octobre 2013 - 09:49
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);
}
}
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 .
#5
Posté 07 octobre 2013 - 11:57
If you are using Chrome, use a differant browser. I have not found an easy way with Chrome.
#6
Posté 07 octobre 2013 - 06:42
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.
Thanks GoG.





Retour en haut







