Item Exclusion

  • Thread starter Thread starter Rikkator
  • Start date Start date
R

Rikkator

Guest
Greetings once again! >_<
Heptameron wrote a trigger a few days ago that does the following:
Create seperate groups of items and limits the hero to carrying 1(or more, depends) of each item... HOWEVER! it doesn't seem to work right!
seeing as Heptameron is busy, he agreed for me to post it here for help(Didn't want to publish it without his approvel, of course.)

It doesnt seem to have any effect >.<.....
I might have copied it wrong though, but ive looked through the trigger a few times and it all seems fine to me(Though im a moron so I probbably got it wrong :cool: )

So here it is!....
Item Exclusion By Heptameron
Events
Unit - A unit Acquires an item
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set IE_CurrentItemType = (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A)))
-------- Helms --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
IE_CurrentItemType Equal to Crown of Kings +5
IE_CurrentItemType Equal to Mask of Death
Then - Actions
Set IE_TypeCount[1] = (IE_TypeCount[1] + 1)
Else - Actions
-------- Weapons --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
IE_CurrentItemType Equal to Maul of Strength
IE_CurrentItemType Equal to Searing Blade
Then - Actions
Set IE_TypeCount[2] = (IE_TypeCount[2] + 1)
Else - Actions
-------- Orbs --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
IE_CurrentItemType Equal to Orb of Fire
IE_CurrentItemType Equal to Orb of Corruption
Then - Actions
Set IE_TypeCount[3] = (IE_TypeCount[3] + 1)
Else - Actions
If (IE_TypeCount[1] Greater than 1) then do (Hero - Drop (Item being manipulated) from (Hero manipulating item)) else do (Do nothing)
If (IE_TypeCount[2] Greater than 1) then do (Hero - Drop (Item being manipulated) from (Hero manipulating item)) else do (Do nothing)
If (IE_TypeCount[3] Greater than 1) then do (Hero - Drop (Item being manipulated) from (Hero manipulating item)) else do (Do nothing)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Set IE_TypeCount[(Integer A)] = 0
 
I may be wrong here, but I thought that adding multiple conditions to an if statement made them automatically AND, meaning that they all have to be true for the then actions to run. Well, an item can't be of two types, so all the if conditions always return not true, making it run the else actions. Solve this by putting all those conditions in Or (multiple conditions).
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top