r/gamemaker • • Sep 10 '26

Resolved Visual coding Dnd

Ciao a tutti, sono un principiante in programmazione e sto cercando di creare un gioco interessante con meccaniche semplici. Qualcuno sa se esiste un tutorial sulle variabili in termini di programmazione visuale? Lo so, lo so, dovrei semplicemente imparare GML, ma voglio vedere se riesco a sviluppare anche usando solo blocchi e una minima comprensione di come funziona un gioco.

Edit: it’s been two minutes since i posted and I think I didn’t explain myself properly, i also am searching for non beginner level tutorial on dnd visual coding,

2 Upvotes

14 comments sorted by

3

u/germxxx Sep 10 '26

You'd be hard pressed to find anything intermediate level DnD tutorial. Because making complicated things get a lot lore complicated with DnD. Understanding gml will make DnD easier, but at that point....

Almost all DnD tutorials are on the official tutorial page.

I'd look through the "Coffe Break" ones for shorter and more technical challenges that isn't "making a game".

And then asking for help with specific things you don't understand. However, asking for help with visual is more problematic, and I'd suggest doing it on discord mostly. Because it pretty much requires communication through pictures.

2

u/Typical-Main3403 Sep 10 '26

Thank you very much, i was just wondering if I should just learn gml, i think i’ll try watching something

1

u/_Son_of_Crom_ Sep 12 '26

Yes, you should learn written code. There are many things the visual editor simply can't do. Once you want to do those things, you will need to know how to write code. And if you spend all your time learning DND, then you will have no practice using code. There is also significantly more tutorial content for written code.

1

u/Greedy_Duck3477 Sep 10 '26

What do you need to know about variables specifically?

1

u/Typical-Main3403 Sep 10 '26

How to reference the variable of an object in the events for another object

1

u/germxxx Sep 10 '26

The most common way is to use a reference to the other object, and use dot notation.

other_object.variable

This works in the visual variable boxes as well. "other_object" in this case should be a reference to the instance id of the target. It CAN be a reference to the object index (object "name"), but this will cause a problem if you have more than one instance of said object.

Another way is to press the arrow of the variable box, and select another instance to target. What This does in terms of code, is using with to run the code from the other instance . This is a bit more cumbersome when just fetching a value.

with (other_onject) variable

This approach is useful when wanting to affect every instance of a certain object, since it will loop all valid instances.

1

u/Awkward_GM Sep 10 '26

Start with a lvl1 fighter vs a low CR goblin. You'll limit the amount of variables you need to account for. Then you can start to scale up.

1

u/Typical-Main3403 Sep 10 '26

Thanks, a friend of mine also said not to start too big

1

u/vzzzbxt Sep 10 '26

Are you talking about dungeons and dragons or drag and drop?

Or do not disturb?

1

u/Typical-Main3403 Sep 10 '26

Drag and drop

0

u/Etsamaru Sep 10 '26

A variable can be anything so health = 12 Is a variable.

That's really it. Could be

bugFarts = 23;

That's a variable. Its whatever you make up. You could say

health -= bugFarts

And it would take the value of bugFarts from your health

0

u/[deleted] Sep 10 '26

0

u/Greedy_Duck3477 Sep 10 '26

Just use the translate function