Skip to content

OPCODE 319: Protagonist item usability restrictions

CirdanCirdan Member Posts: 21
Hello all,

I've been interested by this new opcode 319, and I've been trying to figure out how to create items usable only by my created character. Other NPCs in the game have their own scripting values that you can use to identify them in the opcode set up. However, I don't know what value I could use to represent the protagonist character.

Any ideas?

Comments

  • kjeronkjeron Member Posts: 2,367
    The PC's "name" on its .CRE file is String Reference "-1", (No such Index). All recruitable NPC should have an actual name here, so using this value should work as you want. There might be un-named, non-recruitable, NPC's that might be able to use it, but that shouldn't be an issue.

    Power: 1
    Actor Name: String Reference "-1"
    IDS file: Actor's Name (10)
    jackjack
  • CirdanCirdan Member Posts: 21
    oh wonderful! it worked! Thank you!
Sign In or Register to comment.