Whisp_Rush
Active Member
- Reaction score
- 0
Hi! I have the following trigger to plant, and to grow wheat, and it works very well, if I plant only I... The point is that I´d like to plant more than one, but with this trigger, it´s not possible :
The problem is with
"Set GrainPoint = (Target point of ability being cast)
Wait 5.00 seconds
Item - Remove (Last created item)
Item - Create Wheat at GrainPoint"
this part I think, because if you plant a new wheat, than that will be the "last created item"... so if you can, please help...
And an other cuaestion: Is it possible to make an item unpickupable?
thx
Trigger:
- plant grain
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Ability being cast) Equal to Plant Grain
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Casting unit) has an item of type Wheat Seeds) Equal to True
- Then - Actions
- Do nothing
- Else - Actions
- Unit - Order (Casting unit) to Stop
- Game - Display to (All players) the text: You must have Wheat...
- If - Conditions
- Item - Create Young Wheat at (Target point of ability being cast)
- Item - Set charges remaining in (Item carried by (Casting unit) of type Wheat Seeds) to ((Charges remaining in (Item carried by (Casting unit) of type Wheat Seeds)) - 1)
- Set GrainPoint = (Target point of ability being cast)
- Wait 5.00 seconds
- Item - Remove (Last created item)
- Item - Create Wheat at GrainPoint
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
The problem is with
"Set GrainPoint = (Target point of ability being cast)
Wait 5.00 seconds
Item - Remove (Last created item)
Item - Create Wheat at GrainPoint"
this part I think, because if you plant a new wheat, than that will be the "last created item"... so if you can, please help...
And an other cuaestion: Is it possible to make an item unpickupable?
thx