- Joined
- Aug 3, 2008
- Messages
- 257
So i'm making an rpg and in a book i have a spell called use potion, i need it to take 1 lumber away from the unit when you use the spell then use the spell otherwise do nothing
Uhm i've tried various things like...
basically whats wrong is it doesn't take 1 lumber, and it doesn't use the potion it creates, if anyone has a better solution please help?
Uhm i've tried various things like...
-
Potion
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Ability being cast) Equal to Use a Potion (Dummy)
-




((Owner of (Casting unit)) Current lumber) Greater than or equal to 1
-
-



Then - Actions
-




Player - Set (Owner of (Casting unit)) Current lumber to (((Matching player) Current lumber) - 1)
-




Hero - Drop the item from slot 5 of (Matching unit)
-




Hero - Create Potion and give it to (Casting unit)
-




Hero - Order (Matching unit) to use (Last created item)
-




Hero - Give (Last dropped item) to (Matching unit)
-
-



Else - Actions
-
-
-
basically whats wrong is it doesn't take 1 lumber, and it doesn't use the potion it creates, if anyone has a better solution please help?




