feistaghelm
New Member
- Reaction score
- 2
I have a quest to find a stone and then bring it back to the questgiver. Everything works except the turn in. How do I make the item disappear and get the exp and cash? Here is what I have so far:
Then:
and last:
Still can't get the exp and cash to implement. The quests completes now. The item stays in inventory even with the coding. So I added text to sell the item to the market where his mom works. I'd really like a pro's help with the coding so that the quest will work as I want it to. Find the item, bring the item to QG, item drops from game/inventory, get rewards. TY in advance and +Rep =)
Trigger:
- Thomas
- Events
- Unit - A unit comes within 50.00 of Thomas 0015 <gen>
- Conditions
- (This trigger) Equal to Thomas <gen>
- Actions
- Quest - Display to (All players) the Quest Update message: I was playing near ...
- Quest - Create a Required quest titled Lost Jewel with the description "I was playing near..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
- Camera - Apply Camera 002 <gen> for Player 1 (Red) over 5.00 seconds
- Animation - Play Thomas 0015 <gen>'s Walk animation
- Set Quests[1] = (Last created quest)
- Trigger - Turn off (This trigger)
- Events
Then:
Trigger:
- Lost Jewel
- Events
- Unit - A unit owned by Player 1 (Red) Acquires an item
- Conditions
- (Item-type of (Item being manipulated)) Equal to Gem of True Seeing
- (Quests[1] is enabled) Equal to True
- Actions
- Set QuestComplete[1] = (Owner of (Item carried by (Hero manipulating item) of type Gem of True Seeing))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Owner of (Hero manipulating item)) Equal to Player 1 (Red)
- Then - Actions
- Quest - Display to (All players) the Quest Update message: You recovered the s...
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- Events
and last:
Trigger:
- Turn in
- Events
- Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object
- Conditions
- (Target unit of issued order) Equal to Thomas 0015 <gen>
- (Owner of (Triggering unit)) Equal to Player 1 (Red)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Triggering unit) has an item of type Gem of True Seeing) Equal to True
- Then - Actions
- Player - Add 500 to Player 1 (Red) Current gold
- Hero - Add 200 experience to (Hero manipulating item), Show level-up graphics
- Item - Set charges remaining in (Last created item) to 1
- Hero - Drop (Item being manipulated) from (Triggering unit)
- Hero - Give (Item being manipulated) to Thomas 0015 <gen>
- If (((Last created quest) is completed) Equal to True) then do (Item - Make (Item being manipulated) Pawnable) else do (Do nothing)
- Quest - Mark Quests[1] as Completed
- Quest - Display to (All players) the Quest Update message: Thank you so much! ...
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Still can't get the exp and cash to implement. The quests completes now. The item stays in inventory even with the coding. So I added text to sell the item to the market where his mom works. I'd really like a pro's help with the coding so that the quest will work as I want it to. Find the item, bring the item to QG, item drops from game/inventory, get rewards. TY in advance and +Rep =)