| 07-30-2005, 03:19 AM | #1 |
Alrighty, basically i need to know if this is possible, and how. What i want to happen is the player can type: item ITEMNAMEHERE and it will create whatever ITEMNAMEHERE is below a certain unit. I need a similar thing for abilities: spell SPELLNAMEHERE i want to add SPELLNAMEHERE is to the picked unit\s. So far i have a spawn trigger that works as follows: spawn ## UNITNAME with ## being a number between 01 to 12 and UNITNAME being the name of a unit (Ex: highelfarcher) is it possible to make this system? |
| 07-30-2005, 10:33 AM | #2 |
It's possible. ... I get a feeling you want to know something more than just that... what is it? |
| 07-30-2005, 10:39 AM | #3 |
Aye, how do i do it :P |
| 07-30-2005, 12:15 PM | #4 | |
Have a function like this: Quote:
damn no code tags -.- |
| 07-31-2005, 12:24 AM | #5 | ||
Ugh, do i really have to make an If\Then\Else for every ability? I was hoping i could convert a substring into an ability the same way i do with units. Spawn unit trigger below - Quote:
Its the last one - Quote:
That i want to replicate for abilities and items. Is that possible or do i need a whopping great if\then\else trigger or set each ability to a variable (almost as bad) |
| 07-31-2005, 08:16 AM | #6 |
I think there is an ability name to string conversion. Try that |
| 07-31-2005, 09:08 AM | #7 |
This is for your CotM RP Edit isn't it? Well you could copy the spawn trigger and replace it with ability names and that kinda stuff. |
| 07-31-2005, 09:32 AM | #8 |
Yes it is, however the string conversion trigger for Items and Abilities is one of WEUnlimited's "Advanced" triggers, none of which seem to work (at least none of the ones i've tryed.) I'm hoping theres a JASS solution or something. |
| 08-02-2005, 12:34 AM | #9 |
So can anyone help me? |
| 08-02-2005, 07:59 AM | #10 | |||
Quote:
how about this. Its not that hard and there are no quick solutions. It will be like: Event- Player types message as a substring Action - call AddAbility(msg2ability(GetEnteredString())) Quote:
|
