Alter NPC copy? And get copy #?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Alter NPC copy? And get copy #?

Post by sheamkennedy »

I was wondering if there is any way to do either of these things:
1) Use Alter NPC to only change the properties of a single copy of that NPC?
2) Return the copy number of a specified NPC?

EDIT: I figured out the answer to my first question.
Last edited by sheamkennedy on Tue Feb 20, 2018 9:06 am, edited 1 time in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

1) As you realised, you can't, you need to create a separate NPC definition if you want to change something that's changeable only by editing the definition
2) You're in luck, there's a new script command in nightly builds for this purpose: "npc copy number"
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

TMC wrote:You're in luck, there's a new script command in nightly builds for this purpose: "npc copy number"
That's great to hear! Is there by chance a dictionary that has the commands for the latest nightly? Right now I'm using the plotscripting dictionary here (http://hamsterrepublic.com/ohrrpgce/doc ... onary.html) but if theres a dictionary for the nightly I'd like to know where I can find it.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

In fact it's only in the last few months that there are now two copies uploaded to hamsterrepublic.com: the nightly and the latest stable release:

https://rpg.hamsterrepublic.com/ohrrpgc ... Dictionary

This article was out of date, I've just fixed it. The nightly version of the dictionary is also linked to from the Downloads page.

Of course, if you download a build of the engine it should always include a copy of the correct version of the dictionary.
Last edited by TMC on Tue Feb 20, 2018 11:45 am, edited 1 time in total.
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Okay, thank you!
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Post Reply