weird issue for random item type of class?

canons200

New Member
Reaction score
50
i just do some testing and find out the below problem.

Trigger:
  • Test 1
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Dolphin
      • (Learned Hero Skill) Equal to Summon Bear
      • ((Triggering unit) has an item of type (Random level 6 Artifact item-type)) Equal to True
    • Actions
      • Game - Display to (All players) the text: This trigger is on.


the game display doesn't come out, i have checked that the hero does own the item, and the item level is 6(level unclassified is also level 6), of course, it is an artifact item. The hero learns skill through hero skill point, so i think i have satisfied the event and the condition, right?

I later try to change the condition from random level 6 artifact item type to random level 6 any class item type. Nothing happening.

Again, change the condition from random level 6 to random level -1(there is a tips showing that use -1 for any level). But nothing happen also.

Then, i combine above 2 step and change to random level -1 any class item type, still the text doesn't come out.

i also use the "game display to all" to show the item level, the result is level 6.

However, if i replace the mentioned condition to "((Triggering unit) has an item of type Sword) Equal to True" the text does come out.

So now, i want to know, is it the bug or something i set wrongly? why random level or random item type won't work? Only specified item(naming the item name) work?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Because let's say there are 5 level 6 items.

Sword
Shoes
Shield
Wand
Helmet

This 5, they are all level 6. What the trigger is actually doing is,

Randomly pick one out of the 5.

Let's say they picked shield.

Then they'll check if the triggering unit HAS the shield.
 

TomTTT

New Member
Reaction score
44
skyblade333 said it.
I hate this thing, forcing you to use for each Integer A... stuff. They don't create ANY unit from unit group or ANY artifact level 6. Random means 1 of the total level 6 artifacts and checks it. You need to add Or and add each item you want.
 

canons200

New Member
Reaction score
50
lol, this is so funny =.=' so any better solution? i seem cant get the solution for your 2 post.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Guess you'll have to use Or - condition and list all the level 6 items, or preload them meaning

Level6Item[1] = Sword
Level6Item[2] = Shield

Integer A 1 - Number of items
Unit has Level6Item[IntegerA]

I don't see other ways..
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Oo

you know you can simply check the items level do you?

why do you need to check whether its a random item of that type if you could just check if its level is 6?
 

canons200

New Member
Reaction score
50
to skyblade
it is gonna to be crazy because i have 100+ level 6 item

to Accname
because, only some level 6 item applies for example level 6 permanent item applies, but level 6 artifact item doesn't applies.

Anyway, i know how to do now, thank for the help.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
you can check the item class as well, where is the problem?
 
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