| 09-16-2003, 08:17 PM | #1 |
Okay. I find it VERY annoying to trigger-enhanced custom spells with damage. One reason, you don't get bounty! So, here's what I did. I changed each unit's point value to their bounty. If the unit dies, the point value is added through triggers. My questions are; 1) Is it possible to SOMEHOW retrieve the point value, using JASS or any other kind of WE modification? 2) How can you create custom WE actions in the GUI? I don't want to include the IF statement every time(If unit is dead then do this, if unit is a hero then add 125 gold(heroes need their point value to something else, I can therefore not use the normal method, though their bounty is fixed to 125 so that's not much of a problem)). EDIT: Oops, this was meant to be in the JASS/AI forum actually. can someone move this, unless you feel it's appropriate in the map dev forum... |
| 09-16-2003, 08:52 PM | #2 |
Why not base the ability off of an existing ability that already does damage, then just enhance it to do the other effects? |
| 09-17-2003, 02:18 PM | #3 |
Because there are no proper base spells for this ability... Don't bother to ask me which kind of ability please... Instead, could you try to answer my questions? |
| 09-17-2003, 04:43 PM | #4 |
I'm not sure if it's what you're asking, but I believe you can get to the point value of a unit right in the triggers. For example: Actions - Set some_integer = (Unit - Point-Value of Unit [Dying Unit]) |
| 09-17-2003, 04:54 PM | #5 |
Could you read my post please? I said I have already set it to the point value, and I know how to retrieve the point values, I'm an experienced triggerer. What I don't know is how you create custom GUI actions or if you somehow can access bounties from triggers. |
| 09-17-2003, 09:33 PM | #6 |
Um the way your *meant* to do it is when a unit will be killed by the trigger, you create a hidden unit for the caster that then kills the unit thus giving the correct bounty and experience. |
