Aller au contenu

Photo

How To Post A Script In The Forums


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
_Guile

_Guile
  • Members
  • 685 messages
Is there a specific way you are suppose to post scripts in this forums?

If so, please share so below, and can we get this topic stickied please?


(I'm running into issues with scripts wording being changed, which won't do at all)

#2
WhiZard

WhiZard
  • Members
  • 1 204 messages

[code][/code]

  • _Guile aime ceci

#3
_Guile

_Guile
  • Members
  • 685 messages
Thanks WhiZard (now I fee like a nOOb) :D

#4
Tarot Redhand

Tarot Redhand
  • Members
  • 2 693 messages

You still have to re-indent though when pasting in code from elsewhere.

 

TR



#5
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages

void main ()

 

{

    GetIsRunningFirefox;

 

       return True;

 

else

 

    AutoFail=RollA1

}



#6
Lazarus Magni

Lazarus Magni
  • Members
  • 1 134 messages

PS wow Contra avatar Guile? LLRRABAB or something like that... Right?



#7
Proleric

Proleric
  • Members
  • 2 360 messages

Code indentation is honoured if you toggle Rich Text mode off, or use a browser such as Firefox which is compatible with Bioware's rich text tool (Drupal?). I guess that's what Lazarus Magni meant? For example,
 

void main()
{
// Talk while sitting
// Put in first action of conversation
// Also used OnSpawn
   object oChair = GetLocalObject(OBJECT_SELF, "MyChair");
   string sNPC   = GetTag(OBJECT_SELF);
     if (oChair == OBJECT_INVALID)
       oChair = GetNearestObjectByTag("Chair" + sNPC);
     if (oChair == OBJECT_INVALID)
       oChair = GetNearestObjectByTag("Chair");
   //Make sure no one is in chair, if not sit-down.
   if(!GetIsObjectValid(GetSittingCreature(oChair)))
     {
       SetLocalObject(OBJECT_SELF, "MyChair", oChair);
       ClearAllActions(); //This is so he don't spin in his chair, following you.
       ActionSit(oChair);
     }
}