Started by
jeux2119
on
Topic category: Advanced modding
ok so i know this sounds dumb but how do i check for more then 1 brain in this procedure
https://imgur.com/a/khGWnuh
Topic category: Advanced modding
ok so i know this sounds dumb but how do i check for more then 1 brain in this procedure
https://imgur.com/a/khGWnuh
https://imgur.io/zO18zGg
HOW HOW ARE YOU SO FAST
wait i did that the problem is its spawning 2 zombies if there is two stacks
i think the problem is that it copys then checks the inventory but if there is another stack it will scan two copying two and summoning two of the zombie you chose
You would need to create a lock using a local variable. I can send some screen shots tomorrow.
For your "if item stack iterator equals item" add an "and get local:lock = false" and then within the if statement add a "set local:lock to true" that way it can only run the code once per time you run the procedure
thanks because im not sure how to do that
So, there are kind of two ways of doing this, one is the way I previously suggested with the lock: https://imgur.com/dLqDSQf
The other is probably the more "correct" way to do it, by just using the for each statement to return a value and then check the value out side of the for each statement: https://imgur.com/Xjmk75c
Either way should work though. Let me know how it goes!
ill try them out
1st method worked well ifi have a problem in the future ill use second mode thanks and thanks for teaching me about variables
No problem! Good luck on your mod :)
i did the first one but THANK YOU SO MUCH FOR THE SECOND ONE i checked it and it works so much better
hey but do you know why if the zombie cost 125 brains it does not work
Not sure. Do you have a screenshot of your procedure?
here https://imgur.com/a/gNqhfga
also do will the tamed necromancer
summon already tamed ai