Blockland Forums > Modification Help

RTB preferences datablock type

Pages: (1/3) > >>

lordician:

I am trying to create a RTB preference which is of the datablock type.
Sadly, just using "datablock PlayerData" won't work.
It just isn't supported.

Could there be any way to change the datablock list into a list i can use in the preference?

Kalphiter:

Just use the datablock's name in string form

lordician:


--- Quote from: Kalphiter on June 06, 2011, 04:14:13 PM ---Just use the datablock's name in string form

--- End quote ---
So you suggest i should let the people type in the name of a datablock instead of a dropdownmenu of all datablocks.
(Because it is either impossible to do the latter or very hard)

Kalphiter:


--- Quote from: lordician on June 06, 2011, 04:20:49 PM ---So you suggest i should let the people type in the name of a datablock instead of a dropdownmenu of all datablocks.
(Because it is either impossible to do the latter or very hard)

--- End quote ---
Oh, you want to list all datablocks, rather than a select you have control over?

lordician:


--- Quote from: Kalphiter on June 06, 2011, 04:21:56 PM ---Oh, you want to list all datablocks, rather than a select you have control over?

--- End quote ---
I am getting slightly confused.
Let me get this straight:
I would love to make a RTB preference where you can select a datablock from a list with datablocks (just like when you want to choose what to spawn on a vehicle spawn).
But using "datablock Playerdata" gives me this error:
ERROR: Invalid pref type supplied (datablock) for pref prefnamehere in RTB_registerPref

Pages: (1/3) > >>

Go to full version