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

Stuffy soul chest wait til

broken avatar :(
Created 11 years ago
by pcmodder
0 Members and 1 Guest are viewing this topic.
2,845 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Hi all could i get some assistance in making the bluntstuffy chests triggers wait til another action has been complete , I have Harry BO21 craftables in atm and could use that for the part to be done before the soul chests are active.

If i could make the chests wait til something i could have a much smoother weapon unlocking process thanks for any help  :rainbow:
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
Signature
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
I understood you don't want chests' triggers to be active until something has been crafted, don't you?

If I'm right you only have to add:
Code Snippet
Plaintext
level notify( "SOMETHING" );
after the thing has been built (maybe there's already one, I don't know).
And then:
Code Snippet
Plaintext
level waittill( "SOMETHING" );
before the chests' triggers start doing anything.
Last Edit: October 30, 2015, 02:26:44 pm by Soy-Yo
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Thanks so i currently have this out of Harry craftables ,

Code Snippet
Plaintext
harrybo21_craftables_find_piece()
{
temp_model = harrybo21_craftables_get_radiant_model( "find_piece_1" );
        temp_model = harrybo21_craftables_get_radiant_model( "find_piece_2" );
        temp_model = harrybo21_craftables_get_radiant_model( "find_piece_3" );
        iprintln("^5Random text r");
        Trigger = getent("axe_debris","targetname");
        disable_trigger_with_targetname( "soul_chests" );
        Trigger hide();
        Iprintln ("trigger is hidden");
        level waittill( "move_part_built" );
        enable_trigger_with_targetname( "axe_debris" );
        trigger show();
        iprintln("^5Hells redeemer  shakalaka");
enable_trigger_with_targetname( "soul_chests" );
}

I am guessing this is where i would need to make the soul chest triggers wait , but i am not sure what they are called , this method works for a couple of other steps i have made buti cannot get soul chests to wait .
Last Edit: October 30, 2015, 02:46:29 pm by pcmodder
Marked as best answer by pcmodder 11 years ago
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
Uhm... I guess you're disabling the trigger you don't want to be active and then enabling it again after something happens.
That trigger might have somewhere this:
Code Snippet
Plaintext
trigger waittill( "trigger" );
So if want it to wait for something first, you can add this line:
Code Snippet
Plaintext
level waittill( "move_part_built" );
before it, and I think you won't need this:
Code Snippet
Plaintext
disable_trigger_with_targetname( "soul_chests" );
// ···
enable_trigger_with_targetname( "soul_chests" );
But I'm just guessing, I've never used those scripts.
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Code Snippet
Plaintext
harrybo21_craftables_find_piece()
{
temp_model = harrybo21_craftables_get_radiant_model( "find_piece_1" );
        iprintln("^5Find enough 115 Samples to Upgrade the Hells redeemer");
        Trigger = getent("soul_chest_area","targetname");
        disable_trigger_with_targetname( "soul_chest_area" );
        Trigger hide();
        Iprintln ("trigger is hidden");
        level waittill( "find_piece_built" );
        enable_trigger_with_targetname( "soul_chest_area" );
        trigger show();
        iprintln("^5Hells redeemer something");
enable_trigger_with_targetname( "soul_chest_area" );
}

Thanks for assistance this is working nicely :D

 
Loading ...