HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how can i create player specific multiboards

08-22-2014, 10:30 PM#1
andreasaspenberg
i have a custom resource system where i am using multiboards to display the custom resources. the system itself works well bit i cant figure out how to make the multiboards player specific. unless i figure that out i wont get the optimal display system for it. please help me out.
08-23-2014, 12:24 AM#2
Fledermaus
You're going to have to use jass for this (and this isn't just me messing with you, you actually have to use jass). You'll need to create it then either show/hide it locally or alter the contents of it locally (not sure if that would desync or not, I haven't really messed around with multiboards at all).
08-23-2014, 01:04 AM#3
andreasaspenberg
that doesnt come as a surprise. i was however hoping that it was possible to find a different solution. as i have enough with learning ruby i dont really want to learn jass at the moment so could you help me code it?
08-23-2014, 04:06 AM#4
Fledermaus
Post what you have so far.
08-23-2014, 08:46 AM#5
Anitarf
Yeah, this is not possible just with GUI triggers since there is no action for showing a multiboard to just one player. The easiest way of doing this that I can think of is for you to make a multiboard for each player and store them in an array, you can do all that in GUI, and then you'll just need a single JASS line to show a different multiboard for each player. Once you have the rest done, you can post it here and I can write the JASS line for you.
08-23-2014, 02:01 PM#6
andreasaspenberg
i havent yet completed the scripting part but i am done with the ideas. the ideas should hopefully be enough for you to write the script. each individual faction of the human race except the lawful uses their own custom resources.the outlaw and isil have heat and corruption. the law have reputation. the al kaida have fear and global chaos. al kaida can become the isil islamic state and then they lose fear and global chaos but retains heat. the taliban regime have 4 tech trees.(human, orc, elf and dead.) they consist of a multiboard with 3 colomns and 4 rows. the ascension have hydrogen. the mafia have heat and notoriety. think that is all of them. the map have 9 players.
08-23-2014, 02:26 PM#7
Fledermaus
No thanks, I don't want to write the whole system for you.
08-23-2014, 09:47 PM#8
andreasaspenberg
you dont need to write the whole system. the only thing i need help with is the multiboard display. i know how to change the data inside the multiboards. i have created the system in other maps but i havent yet added it to the main map.
08-23-2014, 11:56 PM#9
Fledermaus
This is really not a good way to get people to do things for you. You've provided sweet F A about how you want the multiboards implemented. I'm not going to waste my time creating it for you because you'll come back and be like OMG that's not how it's meant to be, make it again! Provide 100% clear instructions on how it's meant to be, or better yet create it yourself. I'm happy to change it for you after it's made so that they're only displayed to 1 player but I'm not creating the multiboards for you.
08-24-2014, 01:33 PM#10
andreasaspenberg
i have already gotten the system working as i want but i havent put the system pieces together in the map project. what i need help with is to only show the multiboard to specific players after its creation. each multiboard is assigned to a variable and there is one multiboard variable per player. the text is created by converting integer to string and placing that string in the multiboard. is that evidence enough to confirm that i know how to create the system or do you need more?
08-24-2014, 03:36 PM#11
Anitarf
It would be less work if you used a variable array instead of one variable per player. However, this should work too.

To display a multiboard to only one player, you would need something like this:
Trigger:
Show Multiboard
Collapse Events
Time - Elapsed game time is 0.00 seconds
Conditions
Collapse Actions
Custom script: if GetLocalPlayer()==Player(0) then
Multiboard - Show Multiboard_Variable_For_Player_1
Custom script: endif
This will display Multiboard_Variable_For_Player_1 for player 1, just change the number in the first custom script line to make it work for a different player. Note that player numbers start with 0 in jass, that's why I used a 0 there instead of 1. Simply use 1 for player 2, 2 for player 3 etc.
08-24-2014, 04:56 PM#12
andreasaspenberg
it should work but i have to use a different event however but dont worry about it. i can just use what you posted with a different event. one issue is that there isnt any room for custom script in the multiboard triggers, how did you manage to create that multiboard trigger?
08-25-2014, 12:02 AM#13
Fledermaus
It's a standard GUI action:
Zoom (requires log in)
Attached Images
File type: pngGUI Sucks.png (30.5 KB)
08-25-2014, 10:12 PM#14
andreasaspenberg
i understood the custom script part but there isnt a multiboard trigger that matches the example.(the example consists of 2 cusom script triggers and 1 multiboard trigger.)
08-25-2014, 10:24 PM#15
Fledermaus
Multiboard - Show/Hide. Was that really that hard?