I'm working on a druid transformation system and the thing that for the life of me been unable to get working is storing the spell caster's current weapon to a variable and then changing it to the invisible dummy weapon and back once the transformation ends as obviously we don't want sword wielding rats or bears running around. (Or maybe we do... hmm...) here's the snippet of the code i'm using for the inital transformation state that's relevant to the specfic issue of the weapon changing.
user.addState(173);
$gameTemp.reserveCommonEvent(97);
user.forceChangeEquip(0, $DataWeapons[82]);
i've also tried using both $gameActors.actor(1)[0].forceChangeEquip(0, $DataWeapons[82]); and $gameActors.actor($gameVariables.value(13))[0].forceChangeEquip(0, $DataWeapons[82]); variable 13 being a actor check done in the initial common event. Which I will also post.
the full script for the Variable being: var w = $gameActors.actor($gameVariables.value(13)).weapons()[0]; w ? w.id : 0
I'll also post the second common event for this for completion's sake.
user.addState(173);
$gameTemp.reserveCommonEvent(97);
user.forceChangeEquip(0, $DataWeapons[82]);
i've also tried using both $gameActors.actor(1)[0].forceChangeEquip(0, $DataWeapons[82]); and $gameActors.actor($gameVariables.value(13))[0].forceChangeEquip(0, $DataWeapons[82]); variable 13 being a actor check done in the initial common event. Which I will also post.
the full script for the Variable being: var w = $gameActors.actor($gameVariables.value(13)).weapons()[0]; w ? w.id : 0
I'll also post the second common event for this for completion's sake.