Page 2 of 2 First 12
  1. #11
    Thanks damned. I did look at the DicePool lua and tried to model it after that but failed.

    Also wondering if you can call, or reference an unbound windowclass (windowinstance?) I apologize for the terminology, I realize that it's probably all wrong and I am doing more harm then good.

    I think it might be more helpful to try and explain what I want to do.



    So here is the code for the "doomtracker" window
    desktop_classes.xml
    Code:
    <windowclass name="doomtracker">
    		<frame>grouptracker</frame>
    		<noclose />
    		<sizelimits>
    			<dynamic />
    			<minimum width="200" height="400" />
    		</sizelimits>
    
    		<script>
    			function onInit()
    				
    				Debug.console("self", self);
    				Debug.console("getClass", self.getClass())
    				Debug.console("getDatabaseNode", self.getDatabaseNode());
    				Debug.console("getFrame", self.getFrame());
    			end	
    			
    		</script>
    
    		<sheetdata>
    			
    			<genericcontrol name="dtbase">
    				<bounds>1,1,99,199</bounds>
    				<icon>doomtracker</icon>
    			</genericcontrol>
    
    			<button_dtmom name="dtmomentum">
    				<bounds>19,20,62,62</bounds>
    			</button_dtmom>
    
    			<basicnumber name="gmompool">
           			<bounds>25,70,20,20</bounds>
          		</basicnumber>
    
    			<button_dtdoom name="dtdoom">
    				<bounds>19,120,62,62</bounds>
    			</button_dtdoom>
    
    			<basicnumber name="gdoompool">
           			<bounds>55,110,20,20</bounds>
          		</basicnumber>
    
    		</sheetdata>
    	</windowclass>
    and in the desktop_panels.xml
    Code:
    <panel name="doomtracker" modes="host,client">
    		<class>doomtracker</class>
    		<bounds>400,-350,100,200</bounds>
    		<dynamic />
    		<locked />
    	</panel>
    The basicnumber field I want to access is "gdoompool".

    So that's where I am at. EDIT: Forgot to mention, the doomtracker window would be persistent. No need to close it.

  2. #12
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    18,583
    Blog Entries
    1
    I had thought about creating a type of shared/group "hero points " which could be used for something like this but has never climbed high enough up my wish list

    So we have two issues right?

    1. You are wanting to adjust the values of the Shared Pool by PCs clicking on their Char Sheet?
    2. You want the window that tracks the Shared Pool to open automatically and be persistent?

    I would worry less about the second issue for now.

    As a guess - the player doesnt own the gdoompool so they cant make changes to it
    They can only make changes to records they own - their char sheet and any notes they created.

    You will need to do some OOB messaging.
    There is an example of building some OOB in this video - https://www.youtube.com/watch?v=zTNLJDMLpGk its CT but i reckon it might be the missing key...

    MoreCore - Generic Ruleset
    --- Projects ---
    Extensions | Tutorials | MoreCore | MoreCore Themes | Call of Cthulhu | Maelstrom | FG Con

  3. #13
    Thanks!

    Yes, you are correct, that is what the issues are. I actually have the shared pool window up at the opening of the campaign, I can add numbers to the two basicnumber fields and I have both of the buttons but no real functionality.
    This:
    As a guess - the player doesnt own the gdoompool so they cant make changes to it
    They can only make changes to records they own - their char sheet and any notes they created.
    helps alot.

    I will take a look at the video. I appreciate the help.

  4. #14
    I'm still working on the Doom tracker window with the help of damned's video, not getting it done yet, so I decided to finish up some more of the little things. With the exception of having the ability to create a new item and designate it as a "weapon" with its own set of properties, and then be able to drag and drop it on the character sheet and the npc sheet, those two are nearly complete. They have abilities and skills listed with proper button rollers to factor in all of their modifiers. Talents, Spells, and Creatures on its own sub window (tab), background, languages, appearance, warstory on another.

    Just the doom tracker and the weapon list issues to go and I should be ready to test it with live folks.

    Thanks for all of the help so far. "Knowing is half the battle."


  5. #15
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    18,583
    Blog Entries
    1
    Its looking good!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in