playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - marv

Pages: [1]
1
Action Requests / Hashtable get variable type for key
« on: May 10, 2017, 12:44:17 AM »
I'd like an action that let's you provide the key for an item in a hashtable (Arraymaker package) and returns the variable type (int,bool etc.) in some form, preferably a string or even as events for various types.

Use case/context:

I'm currently building debug tools for my game and would like to do a simple dev console to enable testers to easily change the values for various variables stored in hash tables.

However, since I am currently storing variables of different types in the same hashtables (every character has a table to track their stats + a central hash table for "global" stats) there's no easy way to do this without possibly screwing up the game state by storing the wrong type of variable to a key.

This would also be helpful to keep similar problems when manipulating variables in a way that's not hardcoded but dynamic, when using game events provided by xml for example. It's rather easy to slip up here and provide a wrong variable name, possibly screwing up players' savegames. With this kind of action one could implement a check to see if the variable type of the item in the hash table is the same as the one provided by the game event and stop it from overwriting the item if it isn't.

2
Action Requests / Array get closest game object (in sight)
« on: April 02, 2017, 05:22:48 AM »
Heya

Those two actions do exist for Arraymaker and seem like a logical addition to the new Playmaker array variables.

I assume using them in combination with a spherecast to get a pool of units in range of a unit and then select the closest one is less heavy on performance than just using "find closest", since that one (I assume) tests against all objects in the scene.

3
Action Requests / Get weighted random key from hash table
« on: September 07, 2016, 04:11:43 AM »
Hi,

I'm currently working on a random event system for my game and an action to pick a random key from an arraymaker hash table with all the keys' values used as weights for the random pick would help greatly in reducing the overall complexity of the mechanic.

At the moment I work around this by assigning values to each event according to a variety of variables/flags and then sorting the events into categories from common to rare and then pick randomly from those subgroups which does work but isn't really as flexible as I would like it to be.

cheers


edit: alternatively if somebody has an idea for a similarly flexible way to do this with currently available actions/addons (which is doable for an amateur without programming background), I'd be very thankful for that as well.^^

4
Playmaker Help / supplying a list of names via txt or similar
« on: April 23, 2015, 02:35:03 AM »
Heyo,

complete beginner here with no prior programming knowledge.^^

I'm trying my hands at a kind of adventure company management style game and am currently working on generating randomized heroes for the player to recruit.

At the moment I'm utilizing GoogleFu to supply a list of possible names for the generator, but what I'd like to have is for players to be able to easily expand the pool of available names for those heroes, preferably via simply editing a .txt file or something similar.

Is there already a way to do something like this that I'm just not seeing? Maybe an addon I've missed?

I'd be grateful for some pointers and maybe a gentle shove in the right direction.

cheers

Pages: [1]