Author Topic: Player Editing Item  (Read 340 times)

Is there a way I could code a one use item that edits your players stats for a limited time (Speed, health) without changing the player-type, or have a way for the item to recall the last player-type you had so you don't lose your last player-type?

If so, how would I go about it?

I'm almost 100% sure that this can only be done with playertypes.

I'm almost 100% sure that this can only be done with playertypes.
It can.

Code: [Select]
%this.oldDatablock = %this.getDatablock();
%this.changeDatablock(ANewPlayerType);
%this.changeDataBlock(%this.oldDatablock);

I know it CAN be done, I just want to know if I can be done without a player-type swap or how to recall the last player-type you had prior to item usage.

Use support_altDatablocks. It's included in tier tactical, tier 2.