orangedemi Posted July 4, 2012 Posted July 4, 2012 (edited) so apparently i can't follow the logic of scripts in the gamebyro engine, be it the heat, or the fact im failing to grasp something. but basically i need a script for a custom "infection" ingestible that force equips an armour on use. making the armour unequiptable is a plus.i should be able to reverse engineer a "cure" ingestible script from that but if someone scripts that too that'd be awesome additional information:needs to equipt two items, an armour and a helmet.i will credit for the script thank ya'll for your time,OD Edited July 4, 2012 by orangedemi
luthienanarion Posted July 4, 2012 Posted July 4, 2012 (edited) scn equipscriptname ref self begin scripteffectstart set self to getself self.additem armoritem 1 1 self.additem helmetitem 1 1 self.equipitem armoritem 1 1 self.equipitem helmetitem 1 1 end scn unequipscriptname ref self begin scripteffectstart set self to getself self.unequipitem armoritem 0 1 self.unequipitem helmetitem 0 1 self.removeitem armoritem 1 1 self.removeitem helmetitem 1 1 end Edited July 4, 2012 by luthienanarion
orangedemi Posted July 4, 2012 Author Posted July 4, 2012 luth you are a gentleman and a scholar,thank you so much!
luthienanarion Posted July 4, 2012 Posted July 4, 2012 No problem. I've written a script or two before.
orangedemi Posted July 4, 2012 Author Posted July 4, 2012 (edited) just a slight addition, if i want to make it so the armor is unequipablle by the player till the "cure" item is used how would i do that? edit:belay that XD you scripted exactly that! Edited July 4, 2012 by orangedemi
Recommended Posts