Started by
jeux2119
on
Topic category: Advanced modding
I dont have anything so far i tried but it all seems to fail i have my ai and tool done
but anyways im trying to make a gui pop out when right clicked and you can use the currency to summon the selected minion
for example there would be a normal necromancer so necro would cost 5 norm would cost 1
you use currency and summon the mob on me
because this zombie should cost 2 brains but idk how
https://imgur.com/a/GkIqrYt
You're really close. I'd get rid of the local variable and replace it with an "if ([get number of items in item stack] is greater than or equal to [2])" "do everything you have listed below"
let me try that
is get number of items is it get number of items from slot
nvm
problem this does not fit in the if statement
https://imgur.com/a/6UAVECH
You have a math statement in there currently, you need a logic. Under the logic tab, use the purple/numeric "equal to" option, and then you can change it to "greater than or equal to" which can be put into the if statement
https://imgur.io/zO18zGg
is that what i have to do
found it thx for telling me in logic
ok ill test it out and tell you the results
problem it says mixxing dependendcies
https://imgur.com/a/jM8IHj4
the problem might be because the procedure is being used on button clicked trigger
The "blocked clicked" procedure doesn't support "provided itemstack" you need to change it to "itemstack iterator" -- the itemstack iterator just gets a copy of the item where provided itemstack allows you to modify/edit the item. That's why itemstack iterator doesn't have a dependency.
no button clicked not block clicked