Results 1 to 10 of 10

Thread: Character NPC

  1. #1
    Veteran Ek CM Bolivar's Avatar
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    423

    Character NPC

    Can someone please tell me how to make an PC of my self or others? I need to know the code and what each bit does, thank you.
    How to contact me?

    In-game name currently: ZombiEk" Ciprioni
    Current gang owned: Mayhem
    Skype: ek_graal
    Facebook: Shannon Gallagher
    Email: [email protected]
    Push notifications: enabled

    Ask me any questions/concerns!

  2. #2
    Banned
    Join Date
    Jun 2013
    Location
    Chicago, IL
    Posts
    186
    You need online level editor to do that - offline doesn't load some heads, hats, and bodies.

  3. #3
    Quote Originally Posted by DarkKnight View Post
    You need online level editor to do that - offline doesn't load some heads, hats, and bodies.
    :0 you dont say mate?
    Computer Science major? I don't know. What's GS2?
    日本語が少し出来ます。でも、「Weeb? ??じゃないですよ!

  4. #4
    Gun Admin BiTzSam's Avatar
    Join Date
    Jun 2013
    Location
    Australia
    Posts
    1,940
    It would be very difficult for you to add the npc of yourself, you'd need a staff member to get the code of your head and body (era_personalbody19293838383838.png) then add that to the code which i currently dont have but can get tomorrow, aswell as your custom codes.

  5. #5
    Gun Admin BiTzSam's Avatar
    Join Date
    Jun 2013
    Location
    Australia
    Posts
    1,940
    (You'd also need to name your head and body that you have the same as what the code is, again (era_personalbodylotsofnumbers.png) and place them in the same location as your graaleditor program

  6. #6
    Veteran Ek CM Bolivar's Avatar
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    423
    Yea ok,I hope I make it as gfx soon soI havemy files lol.Cansomeone write the code and label what each bit does?
    How to contact me?

    In-game name currently: ZombiEk" Ciprioni
    Current gang owned: Mayhem
    Skype: ek_graal
    Facebook: Shannon Gallagher
    Email: [email protected]
    Push notifications: enabled

    Ask me any questions/concerns!

  7. #7
    Veteran Ek CM Bolivar's Avatar
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    423
    Guys? The code I have so far is:

    // Graal2002 NPC by Stefan Knorr
    if (created) {
    // Initialize the attributes
    showcharacter;
    setcharprop #3,head0.png;
    setcharprop #C0,orange;
    setcharprop #C1,white;
    setcharprop #C2,blue;
    setcharprop #C3,red;
    setcharprop #C4,gold;
    setcharprop #8,body1.png;
    setcharprop #n,E.k" Ciprioni;
    shieldpower = 1;
    dir = 2;
    }

    Now I ask why the nickname won't work, how to make the name gold and for my head/body code or at least the default head/body code
    How to contact me?

    In-game name currently: ZombiEk" Ciprioni
    Current gang owned: Mayhem
    Skype: ek_graal
    Facebook: Shannon Gallagher
    Email: [email protected]
    Push notifications: enabled

    Ask me any questions/concerns!

  8. #8
    Veteran Ek CM Bolivar's Avatar
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    423
    Many views, little replies.
    How to contact me?

    In-game name currently: ZombiEk" Ciprioni
    Current gang owned: Mayhem
    Skype: ek_graal
    Facebook: Shannon Gallagher
    Email: [email protected]
    Push notifications: enabled

    Ask me any questions/concerns!

  9. #9
    Quote Originally Posted by Ek CM Bolivar View Post
    Guys? The code I have so far is:

    // Graal2002 NPC by Stefan Knorr
    if (created) {
    // Initialize the attributes
    showcharacter;
    setcharprop #3,head0.png;
    setcharprop #C0,orange;
    setcharprop #C1,white;
    setcharprop #C2,blue;
    setcharprop #C3,red;
    setcharprop #C4,gold;
    setcharprop #8,body1.png;
    setcharprop #n,E.k" Ciprioni;
    shieldpower = 1;
    dir = 2;
    }

    Now I ask why the nickname won't work, how to make the name gold and for my head/body code or at least the default head/body code
    Pretty sure you can't make the name gold. The easiest way to make the nickname show is to copy and paste all of that code (except the "n=EK..." part) into a new NPC. Drag the noob NPC on the green screen and a menu will appear. There you can set the nickname, without having to type any code.
    Close that menu and double-click to open the NPC script menu again. Once it's open, you can change what ever you want in there.
    If you want the head and body changed, look in the "Head" and "Bodies" folder of your Graal Directory. You just copy and past the name into your NPC, and you're done.
    Last edited by Loop; 07-12-2013 at 09:58 AM. Reason: Made it clearer

  10. #10
    I also noticed you wanted this labelled, so here you are:
    (The stuff in red is my explanation for each script part.)

    // Graal2002 NPC by Stefan Knorr This is a comment line, which has no effect on the outcome of a program or script.
    if (created) { This is an If statement. And the parameters (whats in the brackets) define the If statement. In this case the scenario is "If the NPC is created, do this.) Notice the brackets "{". What ever is in these, will be carried out after the If statement is True.
    // Initialize the attributes Again another comment line.
    showcharacter; A predefined function, which shows the character.
    setcharprop #3,head0.png; This part sets the head for the NPC to the noob head.
    setcharprop #C0,orange; This part sets the skin colour.
    setcharprop #C1,white; This part sets either the coat, sleeves, shoes or belt colour.
    setcharprop #C2,blue; This part sets either the coat, sleeves, shoes or belt colour.
    setcharprop #C3,red; This part sets either the coat, sleeves, shoes or belt colour.
    setcharprop #C4,gold; I'm not sure what this part does, did you add this yourself?
    setcharprop #8,body1.png; This sets the body for the NPC, this one being the noob body.
    setcharprop #n,E.k" Ciprioni; This part sets the Nick for the NPC, which can also be defined when the user created the NPC.
    shieldpower = 1; This sets how strong the shield is for the NPC, the higher the value, the less health lost when hit.
    dir = 2; This sets the direction of the NPC. It will only take 4 values. "1", "2", "3" or "4". It may actually take North, East etc. too.
    } Ends the function. Allows for more functions to be added after the closing bracket.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •