Variable = item?

BruteBrutal

New Member
Reaction score
1
Hey just noticed a bug in my Quest 2, it's based on pawning 5 items to the shop. However I need to bind the variable to the specific item because otherwise you can simply buy any item in the shop and sell in once the quest is active and it respond the same way

Trigger:
  • Quest 2 Reward
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • Lightning_integer[1] Equal to (Custom value of Lightningbolt 0004 <gen>)
      • QuestCompleted[1] Equal to True
      • (BeardieRegion <gen> contains (Triggering unit)) Equal to True
      • QuestCompleted2[(Player number of (Triggering player))] Equal to False
      • Lightning_integer[1] Equal to 5
      • (Issued order) Equal to (Order(smart))
      • (Unit-type of (Target unit of issued order)) Equal to (Unit-type of Beardie the Wise 0016 <gen>)
    • Actions
      • Quest - Mark (Last created quest) as Completed
      • Hero - Create Divine Claws and give it to (Triggering unit)
      • Game - Display to (All players) the text: |cffffcc00QUEST CO...
      • Set QuestCompleted2[(Player number of (Triggering player))] = True



Tried adding this condition

Lightning_integer[1] Equal to (Custom value of Lightningbolt 0004 <gen>)

but it didnt work.
Whats the problem here?

Thanks,

/Brute
 

vonDarkmoor

New Member
Reaction score
9
can you be more clear abotu what you want, and you have Lightning_integer[1] = to custom value of a unit and
Lightning_integer[1] = 5
 

BruteBrutal

New Member
Reaction score
1
Lightning Integer is the count variable for number of pawned "Lightningbolts".

During active Quest EVERY item react to the countclock. (But if I for example get 5 / 5 with bought and sold Boots of speeds then I wont get Quest.

I want to be able to sell other items during the Quest.

The only item that trigger the Display Quest Update to all players should be when a Lightningbolt is sold (pawned).
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
You have If LightningInteger[1] = Custom Value of LightningBolt 004
Then LightningInteger[1] = 5

So unless Custom value is 5 of the preplaced and specific item LightningBolt 004 (Cause it's Item, not Item type) it won't run. It can't be equal to 1 and 5 at the same time.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top