Difference between revisions of "Talk:Unplayable Items"
Jump to navigation
Jump to search
Token Help. My tokens aren't working
imported>Mmmpld (Unplayable tokens on the player) |
imported>Antares (Token Help. My tokens aren't working) |
||
Line 29: | Line 29: | ||
I've found setting a token as a quest item allows the token to be on the player and unplayable (hidden). Without setting the token to quest the item seemed to disappear.--[[User:Mmmpld|mmmpld]] 07:49, 27 April 2007 (EDT) | I've found setting a token as a quest item allows the token to be on the player and unplayable (hidden). Without setting the token to quest the item seemed to disappear.--[[User:Mmmpld|mmmpld]] 07:49, 27 April 2007 (EDT) | ||
==Token Help== | |||
My token's don't seem to be working. I have created a token to check when certain dynamic NPC's die and then process code which removes them from the game. | |||
Pretty much my procedure at present is as follows: | |||
1.Activator which summons the NPC's | |||
2.Create's FullActorCopy's of persistant ref's in a dummy cell | |||
3.A new reference is given to the copy (so the original is never touched) | |||
4.Copy is moved to a location near the player, token is added | |||
5.I duel the summoned copy to the death | |||
6.The token's script should fire upon my success | |||
But it doesn't very frustrating, Can anybody help? I can post my scripts if necessary. | |||
Here is the script on my token (the one on the activator seems fine as it behaves the way I want it to): | |||
<pre>scn RSTokenScript | |||
ref Holder | |||
short DeathTimer | |||
Begin OnAdd | |||
Set Holder to GetContainer | |||
Holder.Kill ;this was a debug line to see if the OnAdd block was firing, being dead is rather visually cognisable | |||
End | |||
Begin GameMode | |||
If Holder.GetDead == 1 | |||
Set DeathTimer to ( DeathTimer + GetSecondsPassed ) | |||
Holder.SetDestroyed 1 | |||
If DeathTimer >= 3 | |||
Message "The corpse of your opponent has been disposed of" | |||
Holder.Disable ;I know that this line is rather redundant, no need to tell me | |||
Set DeathTimer to 0 | |||
Holder.DeleteFullActorCopy | |||
endif | |||
endif | |||
End</pre> | |||
If you are wondering the DeathTimer is so that the ''Holder'' isn't disabled instantaneously after dying, the timer allows them to fall to the ground and stuff. | |||
<BR>--[[User:Antares|Antares]] 09:26, 15 October 2008 (EDT) |