Hi
I'm trying to make a simple system where you can level your hero attribute by using points, stored has food (I'm using lumber for something else)
I tried with 1 hero, has follow:
And then
So here how my questions:
- First, the "A unit gain a level" thing is ok but, suppose that I level up from level 4 to 6 in a shot, I'm only getting 1 food... How could I fix this?
- I couldn't find a way to make the "Player 1 (Red) types a chat message containing" looks like "A player X types a chat message(etc.)" so that I can work for any player.
- I chose a unit already on the map to test. It's working fine with it. I'm going to store each players hero has a variable when they create them, so the trigger knows what unit to boost. I'm not sure how to modifiy my trigger to find the good unit depending on who is typing. (For exemple, if player3 type -Add str, it will find Hero03 and boost it's strength)
- Last question: I know that in some games, like Burb TD, you can type something like -give 03 40 and that player will get that amount of gold. How can this be acheived? I dont see any close in the actions that might look at some numbers ritten in the chat with the message.
Sorry for all those questions at once \_\ An ty for your time
-Mez
I'm trying to make a simple system where you can level your hero attribute by using points, stored has food (I'm using lumber for something else)
I tried with 1 hero, has follow:
Trigger:
- Level up
- Events
- Unit - A unit Gains a level
- Conditions
- Actions
- Player - Add 1 to (Owner of (Triggering unit)) Food used
- Events
And then
Trigger:
- Level str
- Events
- Player - Player 1 (Red) types a chat message containing -Add str as An exact match
- Conditions
- ((Triggering player) Food used) Greater than or equal to 1
- Actions
- Hero - Modify Strength of |cff8A2BE2Rogue|r 0002 <gen>: Add 1
- Player - Add -1 to (Triggering player) Food used
- Events
So here how my questions:
- First, the "A unit gain a level" thing is ok but, suppose that I level up from level 4 to 6 in a shot, I'm only getting 1 food... How could I fix this?
- I couldn't find a way to make the "Player 1 (Red) types a chat message containing" looks like "A player X types a chat message(etc.)" so that I can work for any player.
- I chose a unit already on the map to test. It's working fine with it. I'm going to store each players hero has a variable when they create them, so the trigger knows what unit to boost. I'm not sure how to modifiy my trigger to find the good unit depending on who is typing. (For exemple, if player3 type -Add str, it will find Hero03 and boost it's strength)
- Last question: I know that in some games, like Burb TD, you can type something like -give 03 40 and that player will get that amount of gold. How can this be acheived? I dont see any close in the actions that might look at some numbers ritten in the chat with the message.
Sorry for all those questions at once \_\ An ty for your time
-Mez