• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Need Help Placing swords in different locations

Jacob

Sailor
Storm Modder
Hello.

I recently thought about making specific sword swaps.

For example.

My ebony Saber is inside San Jorge's Cave
Or any other sword.


What do you think guys think?

Where should I look in PROGRAM folder?

Which File?
 
Two situations.

A) you want to add it so i'ts a visible item.

1 use the TOOL to get the coordinates of the place for the item
(console case 2)

2 add a randitem locator with the TOOL
open GM
open the locatorfile for the location
view/locators
Locators
add a new line at the end

3 in the location init file add something like
Code:
 Locations[n].items.randitem1 = "door_M11";


B) you want to place it in a box

1 see ITEMS/itemLogic.c for ex line 2547 and use something like
Code:
if(_location.id=="Citadel_cave")
        {
            locations[FindLocation(chr.location)].box1.items.bladespade = 1;
        }
use the spawnitems thing only if you want to empty the box of other items.
 
About this one @Jack Rackham

A) you want to add it so i'ts a visible item.

1 use the TOOL to get the coordinates of the place for the item
(console case 2)

2 add a randitem locator with the TOOL
open GM
open the locatorfile for the location
view/locators
Locators
add a new line at the end

3 in the location init file add something like

So I should add a line and add something to it?
I basically want to add a new sword (Black Sword) to San Jorge's Cave on Levathian Rock.

The sword look like this
Zrzut ekranu (413).png
 
Is that "Conceicao_Grot" or a new one?
What's the id of the sword?

Yes It's the Grot.
The sword's ID is rusty and it's named BladeEg

Here, I dropped The sword
Take a look for yourself

I also thought about this crazy idea.
Is it possible to make particles?
Like Flame, Glowing etc.
 

Attachments

  • initItems.c
    366.7 KB · Views: 92
  • Black Sword.zip
    50.9 KB · Views: 92
  • itemsSK.tga
    1 MB · Views: 90
Is it possible to make particles?
Like Flame, Glowing etc.
Yes it is but I'm no expert.

Here's my "console.c". Set the switch on line 147 to 6. Start any game and press F12. You are teleported. Continue with F12
to cycle through all particles effects. You'll get a number in the upper left corner. Which you can check in the console file for the effects name.
 

Attachments

  • console JRH.7z
    12.9 KB · Views: 85
Ok, I checked. There's already a "blade36" placed in that grot. If you want to change it to your new sword
just change in the conceicao.c location init file. Search blade36.

For effects: you can see in initItems.c how the Grenade effects work. For an example of a blade with effects see
Loc_ai/LAi_events.c search for "bladethunder" or "snakewand".
 
Back
Top