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)
How To Post A Script In The Forums
Débuté par
_Guile
, oct. 25 2014 05:22
#1
Posté 25 octobre 2014 - 05:22
#2
Posté 25 octobre 2014 - 05:56
[code][/code]
- _Guile aime ceci
#3
Posté 25 octobre 2014 - 06:00
Thanks WhiZard (now I fee like a nOOb)
#4
Posté 25 octobre 2014 - 10:39
You still have to re-indent though when pasting in code from elsewhere.
TR
#5
Posté 29 octobre 2014 - 02:01
void main ()
{
GetIsRunningFirefox;
return True;
else
AutoFail=RollA1
}
#6
Posté 29 octobre 2014 - 02:13
PS wow Contra avatar Guile? LLRRABAB or something like that... Right?
#7
Posté 29 octobre 2014 - 06:54
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);
}
}





Retour en haut






