View Full Version : Making new fields get added to Item menu if specific text is entered
Bossitronas
February 3rd, 2024, 03:52
Hey All,
I am trying to replicate the functionality that 3.5E and Starfinder have with their item menu. Depending on which text or dropdown option you select new fields become available for entering. How can I replicate this functionality? It would also be really cool if anyone knows how to do this in Ruleset Wizard.
Any help is appreciated.
damned
February 3rd, 2024, 10:52
Look in 5E ruleset
Look at record_item.xml
<string_columnh name="type">
<nohide />
<delaykeyupdate />
<script>
function onValueChanged()
window.update();
end
</script>
</string_columnh>
and
<windowclass name="item_main_weapon">
<margins control="0,0,0,2" />
<script>
function update(bReadOnly)
bonus.setReadOnly(bReadOnly);
damage.setReadOnly(bReadOnly);
properties.setReadOnly(bReadOnly);
end
</script>
LordEntrails
February 3rd, 2024, 19:26
RW does this. Look at the example RW project. Been a long time since I've done it, but can look into my project if you need more specifics than what damned said.
Bossitronas
February 10th, 2024, 03:13
What is your project called in RW? is it the Core item_main or is it a personal one?
LordEntrails
February 11th, 2024, 01:18
It's a personal one.
Bossitronas
February 11th, 2024, 18:37
Do you think you could link or send your project for reference? Will be greatly appreciated.
damned
February 11th, 2024, 23:16
Following the instructions is a better way to learn.
damned
February 11th, 2024, 23:17
There is an item.rwp file available for download on the rulesetwizard.com website
LordEntrails
February 11th, 2024, 23:22
Let's see if these are the right file: https://drive.google.com/file/d/1g-C__ceAmNaDO5qDn-A3q0ldimJ5t44z/view?usp=drive_link
Bossitronas
February 15th, 2024, 16:21
Thank you so much.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.