Aller au contenu

Photo

Plot item status - can you change it


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Sonmeister

Sonmeister
  • Members
  • 167 messages
I have a plot item - a sword - and want to make it so you can weild it.  Is there a way to do this?
Can I change it with a script or should it start out as a non-plot item?

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
You can call SetPlot(oWeapon, FALSE) on the item to remove the plot status, but if it is already in the player's inventory you will need to call MoveItem(oPC, oPC, oWeapon) in order for the GUI to update properly.

If you want the player to be unable to remove the item from their inventory it's a little trickier, since SetItemIndestructible(oWeapon, TRUE) will keep the item from being destroyed, but won't prevent the player from selling it or putting it in a chest and SetItemIrremovable(oWeapon, TRUE) will make it so the player can't even unequip it, but only once it's been equipped.
If the player has no store access and no chests around, SetItemIndestructible is sufficient, otherwise you can use some event (in dialog or wherever) to also set SetItemIndestructible and EquipItem(oPC, oWeapon), then call UnequipItem(oPC, oWeapon) and SetPlot(oWeapon, TRUE) to turn it back into a plot item.
Any updates to these properties while the item is in the player's inventory may require another MoveItem(oPC, oPC, oWeapon) call to update the position in the GUI.

Modifié par Craig Graff, 20 juin 2010 - 05:07 .


#3
mikemike37

mikemike37
  • Members
  • 669 messages
interesting about the GUI, didnt know that update trick. thanks craig.



apologies for the shameless plug (sorry im desperate and while you're here...!) - any chance at getting a colleague to put the FDP files up? we havent had a response and wd really appreciate one...



http://social.biowar...8/index/2842442


#4
Craig Graff

Craig Graff
  • Members
  • 608 messages
I'll talk to Bryan Derksen tomorrow and see if he can upload those or not.

#5
mikemike37

mikemike37
  • Members
  • 669 messages
thanks so much! and sorry for hijacking the thread!

Modifié par mikemike37, 20 juin 2010 - 06:17 .


#6
Sonmeister

Sonmeister
  • Members
  • 167 messages
Cool, thanks for all the info on the plot item, Craig.