OnConsumption Condition Possible?

Post » Tue Sep 08, 2015 4:38 pm

So,

I've tinkering around in the CS and wanted to make a potion that, on consumption, will take the player to a certain cell. The script itself works fine, but there doesn't seem to be a fitting condition. OnUse or OnEquip don't work (obviously), but I couldn't find anything remotely noteworthy. Is something like this even possible without MWSE? I seriously hope the more informed can help me out here.

User avatar
Laura Hicks
 
Posts: 3395
Joined: Wed Jun 06, 2007 9:21 am

Post » Tue Sep 08, 2015 10:38 am

Use a misc item with the potion mesh, OnPCEquip
[EDIT]e.g. something like this

begin fakePotionScriptshort OnPCEquipif ( OnPCEquip )	startscript "removeFakePotionScript"	; do somethingendifendbegin removeFakePotionScriptif ( player->GetItemCount "fakePotionID" )	player->RemoveItem "fakePotionID" 1endifstopscript removeFakePotionScriptend
User avatar
saharen beauty
 
Posts: 3456
Joined: Wed Nov 22, 2006 12:54 am

Post » Tue Sep 08, 2015 3:21 pm

I knew I was overlooking the obvious. Thanks for the reply, this will help me a lot.

User avatar
Umpyre Records
 
Posts: 3436
Joined: Tue Nov 13, 2007 4:19 pm


Return to III - Morrowind