| This is the transcript of a script file, which runs certain tasks in the game upon execution. |
| Details | |
|---|---|
| Type | Decompiled script |
| Editor ID | BrocFlowerScript
|
| Form ID | 000E9ACE |
This script triggers when the player harvests a broc plant, adding a broc flower to their inventory.
scn BrocFlowerScript
int State
begin onActivate
if State == 0 && GetActionRef == player
player.additem BrocFlower 1
set State to 1
playGroup Backward 1
setdestroyed 1
endif
end
begin onLoad
if State == 0
playGroup Forward 1
elseif State == 1
playGroup Backward 1
endif
end
begin onReset
if State == 1
playgroup Forward 1
set State to 0
setdestroyed 0
endif
end