Page 1 of 1

Edit item in console

Posted: Mon Apr 09, 2018 7:08 pm
by maz0ut
HI,

Is there a way to edit the properties of an item in console ? Or re-define it ?

I'm playing the Labyrinth of lies mod but I found a grammar issue in the it'em's properties.
SpoilerShow
defineObject{
name = "autocrank_crossbow",
class = "Item",
uiName = "Autocrank Crossbow",
model = "mod_assets/models/autocrank_crossbow.fbx",
gfxAtlas = "mod_assets/textures/akroma_icons4.tga",
gfxIndex = 25,
skill = "missile weapons", -> underscore missing
requiredLevel = 40,
rangedWeapon = true,
ammo = "quarrel",
attackPower = 40,
coolDownTime = 2.7,
attackMethod = "rangedAttack",
attackSound = "swipe_bow",
impactSound = "impact_blunt",
weight = 3.7,
description = "Gadgeteers from the Vermlin breeding nests invented these mechanised crossbows to match the Chittin Longbows employed by the Insectoid Scourge. Both weapons were matched for power, however, weather conditions and Ice magics crippled the crank systems and crippled this Vermlin invention. Without hinderance though, its powerful and the autocrank allows for rapidfire.",
}

Re: Edit item in console

Posted: Mon Apr 09, 2018 8:56 pm
by Isaac
In Grimrock 2, yes, but not in the first game; the object must be redefined —afaik.

Re: Edit item in console

Posted: Tue Apr 10, 2018 4:07 pm
by maz0ut
:cry: ooh . Thank you Isaac !