How to get any weapon blade of darkness?

Blade of Darkness general discussion and game help forum. Discuss anything related to Severance / BoD (except modding, use the forum below) Note: Possible spoilers!

Moderators: prospero, Ade

Post Reply
User98
Hatchling
Posts: 1
Joined: Fri Sep 17, 2021 4:17 am

How to get any weapon blade of darkness?

Post by User98 »

Hi all.
How to get any weapon on any map using console commands?
What do I need to do? explain step by step, please.

User avatar
prospero
Ancient Dragon
Posts: 1843
Joined: Wed Nov 21, 2001 1:42 am
Location: United Kingdom

Re: How to get any weapon blade of darkness?

Post by prospero »

You need the coordinates on the map to locate the weapon first:


Walk the Player to a clear area and enter

x,y,z = "Player1".Position (press Enter)
print x,y,z (press Enter)

write down the three coordinates.

Then create the weapon by....

o=Bladex.CreateEntity("MyNewWeapon", "Gladius", x,y,z, "Weapon")

* Move the Player before making the weapon*

** The first parameter can be anything of your choice. The second MUST be the correct internal name for the weapon. You can find all the
correct names in Lib/Reference.py **


You can also write the script into a .py file in the map folder but you will have to restart the map for it to take effect.

This is a handy function for recording the Player position:
It should be placed in Defuncs.py of the map.

Code: Select all

def GetPlayerPos():
	char=Bladex.GetEntity("Player1")
	x=int(char.Position[0])
	y=int(char.Position[1])
	z=int(char.Position[2])
	file = open("../../BODLoader/Mods/FugitiveIVpt2/pos.txt","a")
        file.write("("+str(x)+","+str(y)+","+str(z)+")"+"\n")
        file.close()
        
Bladex.AddInputAction("GetPlayerPos", 0)
Bladex.AddBoundFunc("GetPlayerPos", GetPlayerPos)
Bladex.AssocKey("GetPlayerPos", "Keyboard", "V", 1)

[/code}

Simply change the filepath to where you want the pos.txt to be saved. The Player coorde will be written to it every time you press V

Have Fun.

User avatar
prospero
Ancient Dragon
Posts: 1843
Joined: Wed Nov 21, 2001 1:42 am
Location: United Kingdom

Re: How to get any weapon blade of darkness?

Post by prospero »

Here's simpler way.....

Code: Select all

wpnum = 1
WPTYPE = "Gladius" # or whatever

def CreateWeapon():
        global wpnum
	char = Bladex.GetEntity("Player1")
	x,y,z= char.Rel2AbsPoint(0.0, 1000.0, 0.0)   
        wp = Bladex.CreateEntity("NewWP"+str(wpnum), WPTYPE, x,y,z, "Weapon")
        wpnum=wpnum +1
        wp.Impulse(0,0,0)
        
        
Bladex.AddInputAction(" CreateWeapon", 0)
Bladex.AddBoundFunc(" CreateWeapon",  CreateWeapon)
Bladex.AssocKey(" CreateWeapon", "Keyboard", "Z", 1)
Pressing Z will create a weapon 1 metre in front of the Player and drop in on the ground. Make sure the area
in front of the Player is clear. Change the WPTYPE var to the weapon you want.

Post Reply