| 04-18-2007, 09:07 AM | #2 |
What makes you think that people are keen after what you did last time... I've never used LB so explain to me what "works" is and I may be able to help you a lil... just a lil... |
| 04-18-2007, 09:58 AM | #3 |
The LB stops at 3 for me and 2 for the one computer opponent. |
| 04-18-2007, 12:59 PM | #4 |
1. dunno ... 2: Leaderboard - Change the value for (Owner of (Killing unit)) in kills_lb to ((Player number of (Owner of (Killing unit))) + 1) Leaderboard - Change the value for (Owner of (Killing unit)) in kills_lb to (kills_i[(Player number of (Owner of (Killing unit)))]) 3: Trigger seems to be correct ...give some more details ... u dont need to remove global locations ... |
| 04-18-2007, 02:48 PM | #5 | |
Quote:
3. I don't think you can detect when a spell is auto-casted; at least I have never been able to. Someone correct me if I am wrong. |
| 04-18-2007, 02:57 PM | #6 |
you are wrong (at least i think he doesnt want to detect IF it was autocasted...but if it was casted in general ...) |
| 04-18-2007, 03:17 PM | #7 |
Depends on the autocast spell in question. If it's an on-attack, base it on incinerate and detect the buff it leaves on the target. This adjusts automatically for autocast or click-cast. If it's anyother spell, you can EVENT_PLAYER_UNIT_SPELL_EFFECT (Spell effect) trigger detect it. If you want to know if it's being autocast or not for whatever reason, detect the orders "faeriefireon" (Or whatever it is for whatever autocast spell you are using) and then set some boolean attached somehow to the unit to true. If it is "faeriefireoff" (Or whatever) then set said boolean to false. |
| 04-18-2007, 04:34 PM | #8 |
1) Not enough information. Have you debugged, say, at all? 2) Firstly, (All Players) doesn't leak, it's a constant global force. Secondly, I don't think the wantdestroygroup 'hack' even works with forces. But it isn't necessary, so remove it. You're going to be screwing up some other group thing in your map. Your problem with no displaying correctly is: Trigger: Leaderboard - Change the value for (Owner of (Killing unit)) in kills_lb to ((Player number of (Owner of (Killing unit))) + 1)Trigger: Leaderboard - Change the value for (Owner of (Killing unit)) in kills_lb to (kills_i[(Player number of (Owner of (Killing unit))])3) I'm pretty sure autocast normal spells work fine for detection. Your problem in your trigger is that you issue the order for Mirror Image before moving the unit. Moving the unit interupts the order so just move the order actions to after the move actions. Oh, and debug more plz. |
| 04-18-2007, 04:44 PM | #9 |
Can't cast stuff via triggers from spellbook. Hmm...actually, I think you might be able to with order IDs if it has its own ID, not sure, but not with strings. |
| 04-18-2007, 05:05 PM | #10 | |
Quote:
Nah, someone submitted a spell a while back which used casting from within a (hidden) spellbook via GUI triggers. Edit: Oh yeah, and this is entirely relevant to T&S. Why did you post it here? |
| 04-18-2007, 05:08 PM | #11 | |
Quote:
Linkie, because I thought that was impossible. |
| 04-18-2007, 05:34 PM | #12 |
Edit: aah, k never mind. The map is gone and my memory is faulty in any case. But I checked the map and it does have a way to cast something 'invisibly' with GUI. Have the ability on your unit normally and have it disabled for the player. To cast it invisibly, enable the ability, issue the order and then instantly disable the ability. I mentioned it to Dusk and he said a Divine Shield ability cast from inside a spell book didn't work so well for him, so it might not work for all abilities? |
| 04-18-2007, 05:41 PM | #13 |
Me see no map. |
| 04-18-2007, 06:25 PM | #14 |
Thanks guys. I thought that the problem was in Move unit... I blind eyes couldn't pay much of a damn to see the LB problem. Damn. Thanks anyways. |
| 04-18-2007, 11:04 PM | #15 |
Lets break down the multiboard to 1 variable, and then you can add the arrays in later. Now, we have an integer variable "Kills" Trigger: LeaderboardNotice how I change the value being displayed to the variable and I increase the variable before I do that. There is also a function to add gold for a player, which may be easier to read than your current method. Now, once you get that down you can make it arrays and it will be jolly good. |
