1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Classes/Items TemplateClass 1.0

A template class for modders to use.

  1. Pirate-Rob

    Pirate-Rob Haxor Staff Alumni Tester

    Messages:
    270
    Pirate-Rob submitted a new resource:

    TemplateClass - A template class for modders to use.

    Read more about this resource...
     
  2. Verrazano

    Verrazano Flat Chested Haggy Old Souless Witchy Witch Witch THD Team Global Moderator Forum Moderator Tester
    1. Practitioners of War Extreme Revolution - POWER

    Messages:
    477
    Just some comments. I would recommend removing BlobPlacement.as and BlockPlacement.as from the config file even if they don't do anything without the rest of the builder code it might cause some confusion.

    I might also recommend making a TemplateHUD.as but I guess that one isn't as completely necessary since it ends up doing something I guess.

    You can use Wooden.as/Stone.as if you want to give some Stone/Wood particles. You can also change the gib type in in the config file by just changing flesh/wood/stone.

    the something = boolean ? truevalue : falsevalue. is called a ternary operator and it's a shorthand for if else.

    Thank you for making the resources It should be very helpful and a good base point for people who want to make their own classes. I look forward to seeing a basic class tutorial. :D
     
    Pirate-Rob likes this.
  3. Pirate-Rob

    Pirate-Rob Haxor Staff Alumni Tester

    Messages:
    270
    Thanks! I'll fix the class later today ^^
    I'll probably just replace the ternary thing with a simple if statement, it'll make it easier to understand.
     
  4. FunATuns

    FunATuns Builder Carry Donator

    Messages:
    114
    Nice mod rob :thumbs_up:25252525
     
    Pirate-Rob likes this.
  5. Mazey

    Mazey Haxor Global Moderator Forum Moderator Staff Alumni Donator Official Server Admin

    Messages:
    1,914
    TemplateLogic.as line 53
    [​IMG]
    Should be !is null, no?
     
    blackjoker77777 and Asu like this.
  6. Pirate-Rob

    Pirate-Rob Haxor Staff Alumni Tester

    Messages:
    270
    Oops, my bad. I should fix this class :S
     
  7. Shadowblitz16

    Shadowblitz16 Ballista Bolt Thrower

    Messages:
    158
    @Pirate-Rob the head doesn't work is this outdated?
    if so can you fix it please?
     
  8. Pirate-Rob

    Pirate-Rob Haxor Staff Alumni Tester

    Messages:
    270
    Ah right, the template won't work with the latest kag updates. I'll try sort that out when I feel up to it :)
     
  9. AgentHightower

    AgentHightower Ballista Bolt Thrower Tester Official Server Admin
    1. Aphelion's Roleplay

    Messages:
    84
    Noice mod!, Even though i'm probs late. :oops:
     
  10. Shadowblitz16

    Shadowblitz16 Ballista Bolt Thrower

    Messages:
    158
  11. Basshunter

    Basshunter of course i like your t-shirt Staff Alumni Donator Tester Official Server Admin

    Messages:
    91
    Will the template work with the actual kag version?
     
  12. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    no :( ,but there is an easy fix for it to work tho
     
    Basshunter likes this.
  13. Basshunter

    Basshunter of course i like your t-shirt Staff Alumni Donator Tester Official Server Admin

    Messages:
    91
    Damn, that's bad
    I'll try to fix it though
     
  14. Vermilicious

    Vermilicious Ballista Bolt Thrower

    Messages:
    232
    Seems a bit misleading/confusing this one. I'd suggest coming up with a better name and description.

    It's neither a class, a template or a class template / template class, in a traditional programming context.
    What it is, is a sort of bare-bones reference implementation (as far as I can tell) for those that want to make a new "player character type". The set includes descriptors, scripts and sprites.

    My 2 cents.
     
  15. Pirate-Rob

    Pirate-Rob Haxor Staff Alumni Tester

    Messages:
    270
    Yeah, it's a template in the traditional sense.
    I still haven't fixed this, so I should probably take it down <.<
     
    Basshunter likes this.