| 10-31-2004, 02:44 PM | #1 |
To anything... Just don't make it more than 1 days worth of work please. Thanks. ![]() |
| 10-31-2004, 03:52 PM | #2 |
Uh...to anything? Ok.... ^_^ Yeah, so, Im working on this hero arena and I have these triggers that give abilites to units when an item is used...It's all in jass becuz it was faster to use the replace button and item/ability raw code tags. But the problem is...I dont know anything about jass condtions or events, Tho I was taught some stuff about actions. So what I need is to know where and what to CnP a line of code that checks if the triggering hero has all "ability" slots full. My heros work like this. They start off with just the learn skill "ability" and the only thing in there is a mod of engineering upgrade. so when so basically u start off with 2 slots full. Then you can get more abilites by buying items. So that means once somone buys 5 of these items, they have 7 slots full, and that is the max! so if they have those slots full I dont want the add ability trig to go off. And lastly...If engineering upgrade lvl = 3 then the "learn abililty" goes away so that means - 1. I have no clue how to do this...I guess Im gonna have to use some varibles and such. So basically just make a system for me that dectects if ALL the slots in a heros cmd actions are filled up, and tell me where to CnP that condition into the following trigger. This condition will not go under the if/then statments but under the regular condition place. Code:
function Trig_Attribute_Bonus_Func002C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01D' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A01G', GetManipulatingUnit()) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Attribute_Bonus_Func003C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01D' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A01G', GetManipulatingUnit()) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Attribute_Bonus_Func004C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01D' ) ) then
return false
endif
if ( not ( GetUnitAbilityLevelSwapped('A01G', GetManipulatingUnit()) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Attribute_Bonus_Actions takes nothing returns nothing
// Banish
if ( Trig_Attribute_Bonus_Func002C() ) then
call UnitAddAbilityBJ( 'A01G', GetManipulatingUnit() )
return
else
call DoNothing( )
endif
if ( Trig_Attribute_Bonus_Func003C() ) then
call SetUnitAbilityLevelSwapped( 'A01G', GetManipulatingUnit(), 2 )
return
else
call DoNothing( )
endif
if ( Trig_Attribute_Bonus_Func004C() ) then
call SetUnitAbilityLevelSwapped( 'A01G', GetManipulatingUnit(), 3 )
return
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Attribute_Bonus takes nothing returns nothing
set gg_trg_Attribute_Bonus = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Attribute_Bonus, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddAction( gg_trg_Attribute_Bonus, function Trig_Attribute_Bonus_Actions )
endfunction |
| 10-31-2004, 04:11 PM | #3 |
Sweet, just use custom values. |
| 10-31-2004, 04:16 PM | #4 |
that dosent help a thing, I still dont know where to put it in my trig and Im too lazy to do it my self, thats why I want linkmaster here to make the system for me! ^_^ EDIT: thru experimenting I found out how to do conditions in JASS. so now I just need that system! I would do it my self...Im just oh so lazy. So please Linkmaster, accept my challenge! |
| 11-01-2004, 06:54 PM | #5 |
Please do my spell in the spell request thread. PLZ!!! it would be a really big help! |
| 11-01-2004, 07:11 PM | #6 |
That's a big thread, CnP it. Remember, I said Challenging... |
| 11-01-2004, 07:13 PM | #7 | |
Quote:
Well, I kinda wanted to start anew, so ... I'm not going to do your challenge, sorry. =[ :god_help_us: |
| 11-01-2004, 07:22 PM | #8 |
pfft, now I have to do it my self... Fine, I challenge u to...uh...ugh, I can already do everything I want done...umm...make a spell that can only target items and when used on an item it removes the item from the game and gives the triggering player the correct amount of gold for selling that item. So basically a spell that can sell items when there is no store around and dosent require the item to be picked up so it can work with tomes of agility and auto used stuff (Y) |
| 11-01-2004, 07:26 PM | #9 |
... Uh, it's not very challenging... but... uh... ok... I, gues..s... |
| 11-01-2004, 07:37 PM | #10 |
My challenge: finish your friggin' magazine that you started months ago! WC3C Magazine You said something that wouldn't take very long and this doesn't really apply, but... If you're not going to finish it, say so. There are still people talking in that thread about what a neat idea it would be, and if you don't have the motivation to finish it then mention it in the thread. If you're not going to do it, that's fine, but you should tell people that. Just my opinion. |
| 11-01-2004, 08:52 PM | #11 | |
Quote:
but... ummm... that's was bit harsh... I mean, you DO want him to finish it, right? :) Anyway, LM, hope you haven't forgotten about that and are still writing articles and assembling a multiplayer test crew, however slow that goes. Anyway, I did think of a challenge, too. It is magazine related (because I just got the idea while reading aaero's post), but it has something ado with triggers as well. A tutorial. But not any tutorial, no, as I said, this is a challenge. It has to be a tutorial that explains as SHORT as possible as MUCH as possible about the trigger editor to a begginer. So, the idea is, a tutorial that allows a person of average intelect who decided to try the editor for the first time to be able to do simple trigger-run maps on their own. Of course, it has to be as short as possible at the same time, so that person isn't repelled by the shear size of what must be read to learn the basics. So, to put it another way, make a sort of commercial for the trigger editor: something that says look how easy it is to use, you can do all the complex stuff with these basics written here on just one sheet of paper! So try it out, se how fun being creative can be! That would be something fitting for the first issue of the war3 magazine. |
| 11-30-2004, 07:31 PM | #12 |
so u finish it yet? |
| 11-30-2004, 07:58 PM | #13 |
Kinda glad this thread got bumped. I just reread my post and it did come across as rather harsh. My bad, it wasn't my intention. Sorry. Go go warcraft magazine! |
| 11-30-2004, 08:32 PM | #14 |
Guest | Triggers r so complicated when there are so many!!! ![]() |
