UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How To Add Multiple Treasure Chests

broken avatar :(
Created 8 years ago
by eTHANmoTION
0 Members and 1 Guest are viewing this topic.
5,479 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 14 August 2016
Last active: 4 years ago
Posts
7
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
eTHANmoTION's Groups
eTHANmoTION's Contact & Social Links
So im making a map and i want to add multiple treasure chests

(i tried sniperbolts tutorial prefabs but the box would never move if you know fix let me know here too)

i add two boxes and i get this error:

script runtime error
(see console for details)
pair 'unidentified' and 'start_chest' has unmatching types
'undefined' and 'string'



So I Add The Prefabs Of Begin And Chest1 With The SniperBolts Tutorial Prefabs pack and i compile and play the map, and when the box goes it re-appears in the same spot. look at video for more detail

NOTE: I Am New So I Need It Explained To Me :)

Thanks -EthanMotion

please msg back because i am a beginner at map making
Last Edit: August 17, 2016, 03:07:20 pm by Lukkie1998
broken avatar :(
×
broken avatar :(
Location: ph
Date Registered: 22 May 2016
Last active: 4 months ago
Posts
225
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
×
KhelMho's Groups
KhelMho's Contact & Social Links
Do not multiple the "start_chest". Next one is "chest_1"  :nyan:
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 14 August 2016
Last active: 4 years ago
Posts
7
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
eTHANmoTION's Groups
eTHANmoTION's Contact & Social Links
how do i change that.  and the only chest i can see in prefabs is treasure_chest
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 1 January 2014
Last active: 2 years ago
Posts
135
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Signature
Map: No Way Out
Weapon Porter
Custom Music
Mapper
https://i.gyazo.com/4dea470ff0a559d7c79a0a350788da30.png
×
Marsvinking's Groups
Marsvinking's Contact & Social Linksmarsvinkingmarsvinkingmarsvinking
how do i change that.  and the only chest i can see in prefabs is treasure_chest
go into your mapname.gsc and you will see this

Code Snippet
Plaintext
// Magic Boxes -- The Script_Noteworthy Value Names On Purchase Trigger In Radiant
boxArray = [];
boxArray[ boxArray.size ] = "start_chest";
boxArray[ boxArray.size ] = "chest1";
boxArray[ boxArray.size ] = "chest2";
boxArray[ boxArray.size ] = "chest3";
boxArray[ boxArray.size ] = "chest4";
boxArray[ boxArray.size ] = "chest5";
level.DLC3.PandoraBoxes = boxArray;

Do this if u want more

Code Snippet
Plaintext
// Magic Boxes -- The Script_Noteworthy Value Names On Purchase Trigger In Radiant
boxArray = [];
boxArray[ boxArray.size ] = "start_chest";
boxArray[ boxArray.size ] = "chest1";
boxArray[ boxArray.size ] = "chest2";
boxArray[ boxArray.size ] = "chest3";
boxArray[ boxArray.size ] = "chest4";
boxArray[ boxArray.size ] = "chest5";
        // Added Magic Box for more
        boxArray[ boxArray.size ] = "chest1_1";
boxArray[ boxArray.size ] = "chest2_2";
boxArray[ boxArray.size ] = "chest3_3";
boxArray[ boxArray.size ] = "chest4_4";
boxArray[ boxArray.size ] = "chest5_5";
level.DLC3.PandoraBoxes = boxArray;

the kvp should be
Key: script_noteworthy
value: chest1_1

Thats not needed for your old ones let them be as they are, this is just to get more magix boxes, copy the prefab and rename it :P

And dont forget that you will change something on your prefabs :P
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 14 August 2016
Last active: 4 years ago
Posts
7
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
eTHANmoTION's Groups
eTHANmoTION's Contact & Social Links
sorry i am really new and i dont get most of this,
in my map file i have this

// Magic Boxes -- The Script_Noteworthy Value Names On Purchase Trigger In Radiant
   boxArray = [];
   boxArray[ boxArray.size ] = "start_chest";
   boxArray[ boxArray.size ] = "chest1";
   boxArray[ boxArray.size ] = "chest2";
   boxArray[ boxArray.size ] = "chest3";
   boxArray[ boxArray.size ] = "chest4";
   boxArray[ boxArray.size ] = "chest5";
   level.DLC3.PandoraBoxes = boxArray;

i tried doing

script_noteworthy
start_chest

on my start chest and did

script_noteworthy
chest1

on the other but i get the same error and i cant just click on the trigger because it is a prefab in zombiemode folder
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 1 January 2014
Last active: 2 years ago
Posts
135
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Marsvinking's Groups
Marsvinking's Contact & Social Linksmarsvinkingmarsvinkingmarsvinking
sorry i am really new and i dont get most of this,
in my map file i have this

// Magic Boxes -- The Script_Noteworthy Value Names On Purchase Trigger In Radiant
   boxArray = [];
   boxArray[ boxArray.size ] = "start_chest";
   boxArray[ boxArray.size ] = "chest1";
   boxArray[ boxArray.size ] = "chest2";
   boxArray[ boxArray.size ] = "chest3";
   boxArray[ boxArray.size ] = "chest4";
   boxArray[ boxArray.size ] = "chest5";
   level.DLC3.PandoraBoxes = boxArray;

i tried doing

script_noteworthy
start_chest

on my start chest and did

script_noteworthy
chest1

on the other but i get the same error and i cant just click on the trigger because it is a prefab in zombiemode folder


Stamp the prefab in radiant :P
Or Enter Prefab
Last Edit: August 17, 2016, 04:06:56 pm by Marsvinking
broken avatar :(
×
broken avatar :(
Location: usTexas
Date Registered: 12 September 2013
Last active: 1 year ago
Posts
304
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
I make maps for fun, they are mostly crap.
Signature
Maps:
Unterwegs
Hello Kitty Remastered
Firing Range
×
oshawat750's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
oshawat750's Contact & Social LinksOshawat750OshaPooOshawat750
You named this topic wrong. It should have been "Mystery Box Doesn't Move" since it doesn't move. I noticed that you also don't have a light for the mystery box. This has happened to me, I have a fix for it. It has to do with your dlc3_code.gsc and _zombiemode_weapons.gsc. Download the files below and replace them in your map, and your box should be fixed!  ;)
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 14 August 2016
Last active: 4 years ago
Posts
7
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
eTHANmoTION's Groups
eTHANmoTION's Contact & Social Links
Now im getting another error.

Sever script compile error
could not find script 'maps/_harrybo21_utilites'
#include maps\_harrybo21_utilites

how do i fix this?
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Now im getting another error.

Sever script compile error
could not find script 'maps/_harrybo21_utilites'
#include maps\_harrybo21_utilites

how do i fix this?

Delete that line if you dont have Harrys perk packs or any of his packs
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 14 August 2016
Last active: 4 years ago
Posts
7
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
eTHANmoTION's Groups
eTHANmoTION's Contact & Social Links
Ok i have done this and now i am getting another error.

Server script compile error
Unknown function
user thread harrybo21_give_gun(
weapon_spawn_org.weapon_string);
(see console for details)

know any fixes? :)

 
Loading ...