Help with my game

So i cant make a treasure chest at center region

1 Like

i did this:
create Treasure Chest for animal player at string facing 0 radians

1 Like

:disappointed: PLZ HELP ME WOLF OR I WILL BE SO SAD/MAD >:(

1 Like

:sob: vBHV G CFGVYVCF G HGCVGU JHVHJBKJ NNVCIHKLM< N

1 Like

Do you wan’t to make an entity at the center of your own region?

1 Like

yes its hard without wolf around

1 Like

like bro ITS SO HARD

1 Like

wolf is like “just give me a sec” and hes done!

1 Like

If you want to make a treasure chest that gives items
Here are steps to do it:

  1. 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:

  1. 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!

  2. Add entity to your map
    step4
    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

  1. Add item type


    Select any item you want to add in your item type.

  2. 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

1 Like