Simple Integer Problem

Happysmiley

New Member
Reaction score
22
Ok, so I have a few potion spells which when used too frequently will grant a debuff. This intoxication is measured on a scale 0-100.

I've made a periodic trigger which goes like this; (not at a computer with WE atm)

Trigger:
  • Untitled Trigger 001
    • Events
    • Every 2.00 seconds
    • Conditions
    • Actions
    • If (Conditions)
    • If (Intoxication) Less than or equal to (100)
    • Then (Actions)
    • Set (Intoxication) = ((Intoxication) - 1)
    • Else (Actions)
    • Set (Intoxication) = (100)


Problem is, it's only half working. It does set intoxication to -1, but it doesn't set it to 100 if it's >100... :nuts:
 

Carnerox

The one and only.
Reaction score
84
Is there more to that trigger? If there is it would help me fix your trigger.
 

Happysmiley

New Member
Reaction score
22
Is there more to that trigger? If there is it would help me fix your trigger.

Well, not to that trigger. But there are other triggers that uses the same variable. I'll be off work in 3,5 hrs so I'll post all the triggers later today :)
 

Carnerox

The one and only.
Reaction score
84
Well i am going to bed, if some one doesn't help you, then i will tomorrow :thup:.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top