Jump to content

Recommended Posts

Posted (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 by orangedemi
Posted (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 by luthienanarion
Posted (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 by orangedemi
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...