[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > Triggers & Scripts


Triggers & Scripts In this forum you may ask for help on fixing a trigger or script. But if you need help getting started with a trigger, this is not the right place — use the World Editor Help Zone.

Closed Thread
 
Thread Tools
Old 06-20-2009, 01:52 PM   #1 (permalink)
Registered User Slaydon
STARCRAFT 2 :D
 
Slaydon's Avatar
 
Join Date: Jan 2008
Posts: 2,526
Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)
Inventory System.. Whats wrong with this?

Events
A unit Aquires an item.
Conditions
Actions
If then Else
If
(Item-type of (Item carried by PLAYER_CONTROLLER of type Item_Bows[(Integer A)])) Equal to Item_Bows[(Integer A)]
Then
Animation - Play (Triggering unit)'s death animation
Else
If then Else
If
(Item-type of (Item carried by PLAYER_CONTROLLER of type Item_TwoHands[(Integer A)])) Equal to Item_TwoHands[(Integer A)]
Then
Animation - Play (Triggering unit)'s attack animation
Else

The Animations should be another action but, the problem is that he do both of it when he aquires an item.

It happens even if he gets another Item.. I want the item that he aquires should make an action.
__________________
Signature - Best Guide Ever - Another good Guide - A MUST SEE VID
Slaydon is offline  
Old 06-20-2009, 01:54 PM   #2 (permalink)
Registered User Reaper2008
Greek JASSer...
 
Reaper2008's Avatar
 
Join Date: Jul 2008
Posts: 1,168
Reaper2008 is a jewel in the rough (215)Reaper2008 is a jewel in the rough (215)Reaper2008 is a jewel in the rough (215)
I think there's a condition "Unit - Unit has Item".
__________________
Reaper2008 is offline  
Old 06-20-2009, 01:54 PM   #3 (permalink)
Registered User Slaydon
STARCRAFT 2 :D
 
Slaydon's Avatar
 
Join Date: Jan 2008
Posts: 2,526
Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)
Yes, but then i have to select all the slots, and im creating an Inventory, so how to do that?
__________________
Signature - Best Guide Ever - Another good Guide - A MUST SEE VID
Slaydon is offline  
Old 06-20-2009, 02:03 PM   #4 (permalink)
Registered User Reaper2008
Greek JASSer...
 
Reaper2008's Avatar
 
Join Date: Jul 2008
Posts: 1,168
Reaper2008 is a jewel in the rough (215)Reaper2008 is a jewel in the rough (215)Reaper2008 is a jewel in the rough (215)
Not "(Item-type of (Item carried by Hero in slot 1)) Equal to Item", but "(Hero has an item of type Item) Equal to True". It's in Boolean Comparison, Hero has Item.
__________________
Reaper2008 is offline  
Old 06-20-2009, 02:07 PM   #5 (permalink)
Registered User Slaydon
STARCRAFT 2 :D
 
Slaydon's Avatar
 
Join Date: Jan 2008
Posts: 2,526
Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)Slaydon is just really nice (390)
That didnt help, Now nothing happens, Maybe its because of the Has item? it should be Gets
__________________
Signature - Best Guide Ever - Another good Guide - A MUST SEE VID
Slaydon is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[JASS] Whats wrong with this? Coolty44 Triggers & Scripts 6 04-06-2009 01:09 AM
[Trigger] Whats wrong?? Freyleyes Triggers & Scripts 3 02-15-2009 12:57 PM
[Trigger] whats wrong with my revive system here is the trigger Shanghai Triggers & Scripts 5 12-31-2008 04:53 PM
Whats wrong with this? DemonHunterSX Triggers & Scripts 11 03-02-2006 03:32 AM

All times are GMT. The time now is 06:05 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle