So i cant make a treasure chest at center region
i did this:
create Treasure Chest for animal player at string facing 0 radians
PLZ HELP ME WOLF OR I WILL BE SO SAD/MAD >:(
vBHV G CFGVYVCF G HGCVGU JHVHJBKJ NNVCIHKLM< N
Do you wan’t to make an entity at the center of your own region?
yes its hard without wolf around
like bro ITS SO HARD
wolf is like “just give me a sec” and hes done!
If you want to make a treasure chest that gives items
Here are steps to do it:
- Skip step 1 if you already have AI variables and player types, you need to create player type first, like this:
If you added this, you need to also add a variable for it, Like this:
-
Add assign player type script in initialize script
This is required to make AIs work, if you didn’t add this, AIs will not work! -
Add entity to your map
Click on this 3D shape button, which is add entities
Entity type must be Unit, Set your owned by (AI player) to AI player you just created. and choose the entity, Remember, add the treasure first. and click Select
-
Add item type
Select any item you want to add in your item type. -
Make a script when you kill treasure
Trigger is when a unit's attribute becomes 0 or less
After you just added the trigger, add the script there.
if ((attribute type of ( triggering attribute) )) = ( health )
then do:
if (( unit type of ( triggering unit ) )) = (<name>)
then do:
destroy (triggering unit)
create a new ( random item type from <name> ) and give it to a ( last attacking unit )
else do:
else do:
If there is something not right, ask me