- Joined
- Mar 16, 2018
- Messages
- 768
1. Hi, how to give item to unit after dialogue button is triggered?
In the beginning of game PLAYERS choose gender and spawn in general spawn and choose their briefing (biography) (dialogue button thing)
There are several biographies and when they select them, I decided that it will create item that belongs to the bio and give it to the player chest near spawn. But I wanted to give it to character that is created afterwards. Or there is another solution: each player has hero unit-backpack that is always attached to player and it can store items in it and withdraw that specific item from biography... How do I do that?
2. How to add experience to heroes in region every 30 sec? Do not give experience after heroes reach level x. I tried to create scan like trigger so it looks for matching unit is hero in region and give exp to matching unit but it stopped working smh
Set ScanTrain = units in region matching matching unit is hero - yes
Pick every unit in ScanTrain and do stuff:
Hero add level exp to picked unit show level up graphics
call destro group udg_scantrain
In the beginning of game PLAYERS choose gender and spawn in general spawn and choose their briefing (biography) (dialogue button thing)
There are several biographies and when they select them, I decided that it will create item that belongs to the bio and give it to the player chest near spawn. But I wanted to give it to character that is created afterwards. Or there is another solution: each player has hero unit-backpack that is always attached to player and it can store items in it and withdraw that specific item from biography... How do I do that?
2. How to add experience to heroes in region every 30 sec? Do not give experience after heroes reach level x. I tried to create scan like trigger so it looks for matching unit is hero in region and give exp to matching unit but it stopped working smh
Set ScanTrain = units in region matching matching unit is hero - yes
Pick every unit in ScanTrain and do stuff:
Hero add level exp to picked unit show level up graphics
call destro group udg_scantrain