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

Making new objects/entities/items

Discussion in 'Modding Help' started by Chaoticredux, Oct 1, 2013.

  1. Chaoticredux

    Chaoticredux Shopkeep Stealer

    Messages:
    84
    Most if not all of the mods i have seen rip code from existing objects ( ballista bolts , trampolines , arrows etc) Even so far as to leaving the original namespace's in the script files. Renaming these completely breaks the scripts. Ive even tried copying all the scripts associated with the one im modding and renaming parts of those files as well to no avail.

    What has to be done to introduce new features ? not just rip and replace code. Example , make another type of ammo.

    arrow.as
    arrow2.as <-- wont work
     
  2. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    Just make sure you're referencing correct paths etc, if you want to change the name, you'll need to change it thoughout ALL of the code, that's why people usually just rip the code and keep all the same names, it saves time and a lot of frustration :D
     
  3. sinnertie

    sinnertie Ministry of Hatred Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    252
    Usefull program for things like that is Notepad++. It gives you possibility to select sentence and swap it to anything you want in whole, massive documents or source code just by two clicks.
     
    kaizokuroof likes this.