UMSWE: Add item to random item pool?

mylemonblue

You can change this now in User CP.
Reaction score
7
I just noticed that function in the trigger editor, and it states:
"Add the item type id to the pool and give it a chance of percent to be chosen."

Now that sounds perfect. It's exactly what I've been trying to get for some time now. The problem is, clicking ID asks for an integer value. I cannot choose an item, nor enter it's rawcode. So, how do I find the item type and what it's 'id' is? :?
 

jig7c

Stop reading me...-statement
Reaction score
123
convert integer to string
and type it in?

or use jass code
and type in 'I008'
 

mylemonblue

You can change this now in User CP.
Reaction score
7
convert integer to string
and type it in?

or use jass code
and type in 'I008'

I'll try that, thanks :)

EDIT: Looked it over, and there is only 'Convert Real to Integer' and 'Convert String to Integer'. I tried the JASS code as well, and it gives me a syntax error when saving, telling me that I002 (The item I used to test) was undeclared. =/
 

mylemonblue

You can change this now in User CP.
Reaction score
7
@Lehona: Doh! How could I have forgotten that! D:
It works perfectly now. Thanks :D (+rep)

@HeX.16: I learn something new every day it seems. THanks for pointing that out :)
 

Lmfaocj

Active Member
Reaction score
1
Hmm, Thanks all I that's the answer I was looking for but, is there away to get more then one pool or not?

Edit: and would this work
Trigger:
  • For each (Integer A) from 1 to 2, do (Item - Add the item type (udg_Item[GetForLoopIndexA()]) to the pool and give it a chance of 100 to be chosen)
?
 
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