Auto-translated
Yes, you understood correctly.
And how can I make the heroname global in this situation? I mean, I need to "remember" the heroname before the talkbox, and then use it in the function specified by the talkbox? Wouldn't this affect all similar functions with the heroname?
Added 2 minutes later
Ps: Perhaps it would be better with an example, at least showing the order and which function to use, if possible...
Added 9 minutes later
Ugh, no, never mind, it was easy, I just didn't fully understand something at the beginning =)
Thank you very much, I probably wouldn't have figured it out myself =)
Added 3 hours 20 minutes later
Now, seriously:
Is it possible to create a function that, when a hero touches any object of a given type (for example, a peasant hut), removes that object from the map and replaces it with another (create dwelling, goblin huts, or something like that).
I understand that it's easier to specify it for each object, but that would be very time-consuming in this case.
And how can I make the heroname global in this situation? I mean, I need to "remember" the heroname before the talkbox, and then use it in the function specified by the talkbox? Wouldn't this affect all similar functions with the heroname?
Added 2 minutes later
Ps: Perhaps it would be better with an example, at least showing the order and which function to use, if possible...
Added 9 minutes later
Ugh, no, never mind, it was easy, I just didn't fully understand something at the beginning =)
Thank you very much, I probably wouldn't have figured it out myself =)
Added 3 hours 20 minutes later
Now, seriously:
Is it possible to create a function that, when a hero touches any object of a given type (for example, a peasant hut), removes that object from the map and replaces it with another (create dwelling, goblin huts, or something like that).
I understand that it's easier to specify it for each object, but that would be very time-consuming in this case.
Whatever
