[ASK] Spawning Building complete with the sold item by using GUI trigger ???

omniversal

New Member
Reaction score
0
any one know how to spawning building by using GUI trigger ???
I have Tried it and it succes spawn the building like arcane vault but the problem is the item that sold in that arcane vault didnt appear , so that unable someone to buying an item.

What i want asking is how to spawning the building especially a Arcane vault or other Shop Type building that contain the item that sold in the arcane vault or shop type building by using trigger so we can buy the item that contain in that shop ???
 

WolfieeifloW

WEHZ Helper
Reaction score
372
You probably have to spawn the building, then add the items that would normally be in it.

"Neutral Building - Add Item-Type (To Marketplace)"
Code:
Neutral Building - Add Tome of Experience to (Triggering unit) with 0 in stock and a max stock of 1
 

omniversal

New Member
Reaction score
0
i have made 2 type trigger but its still failed. Its only can spawn building that i coose but can can spawn the item that sold and should be in the Shop/building.

Help me please
 

Attachments

  • Model Type 1.bmp
    852.4 KB · Views: 375
  • Model Type 2.bmp
    941.2 KB · Views: 343

WolfieeifloW

WEHZ Helper
Reaction score
372
Next time, put your trigger in [pre]
Code:
[/pre] or [pre]
Trigger:
[/pre] tags.

As for the building.
If you're using "Map initialization" for your Event anyways, why not just have the unit already placed on the map?

If you're just using that for an example, here's how you'd do your actions:
Trigger:
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Create 1 Arcane Vault for Neutral Passive at (Center of (Playable map area)) facing Default building facing degrees
      • Neutral Building - Add Ankh of Reincarnation to (Last created unit) with 0 in stock and a max stock of 1

"Last created unit", not "Triggering unit".
 

omniversal

New Member
Reaction score
0
Next time, put your trigger in [pre]
Code:
[/pre] or [pre]
Trigger:
[/pre] tags.

As for the building.
If you're using "Map initialization" for your Event anyways, why not just have the unit already placed on the map?

If you're just using that for an example, here's how you'd do your actions:
Trigger:
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Create 1 Arcane Vault for Neutral Passive at (Center of (Playable map area)) facing Default building facing degrees
      • Neutral Building - Add Ankh of Reincarnation to (Last created unit) with 0 in stock and a max stock of 1

"Last created unit", not "Triggering unit".

I do like yours. But its failed because that trigger only spawn the building ( marketplace ) but not showing the item.

Trigger:
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Create 1 Arcane Sanctum for Neutral Passive at (Center of Region 002 <gen>) facing Default building facing degrees
      • Neutral Building - Add Ankh of Reincarnation to (Last created unit) with 0 in stock and a max stock of 1
 

WolfieeifloW

WEHZ Helper
Reaction score
372
If you're not using all 12 player slots, then just use 'Player 12' as your "Neutral" faction.
Go to "Scenario -> Player Properties... ->".
Put Player 12 (Brown) as a "Neutral" controller.
Then, under the 'Forces' tab, make all the players you want to be able to buy from the stores, 'Allied' with Player 12.

Then, simply use this:
Trigger:
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Create 1 Arcane Vault for Player 12 (Brown) at (Center of (Playable map area)) facing Default building facing degrees

Although, this unit will now come with the default items in it.
If you want to make it different, go into the 'Object Editor', under the 'Units' tab.
Find the 'Arcane Vault' (CTRL+F can help) and rightclick it.
Make a "New Custom Unit...", and now edit this new custom vault to your liking.
I would give it a new name to avoid confusion, like "Arcane Store" or something.
To edit what items it has, edit the "Abilities - Normal" field under the new vault unit.
 

omniversal

New Member
Reaction score
0
If you're not using all 12 player slots, then just use 'Player 12' as your "Neutral" faction.
Go to "Scenario -> Player Properties... ->".
Put Player 12 (Brown) as a "Neutral" controller.
Then, under the 'Forces' tab, make all the players you want to be able to buy from the stores, 'Allied' with Player 12.

Then, simply use this:
Trigger:
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Create 1 Arcane Vault for Player 12 (Brown) at (Center of (Playable map area)) facing Default building facing degrees

Although, this unit will now come with the default items in it.
If you want to make it different, go into the 'Object Editor', under the 'Units' tab.
Find the 'Arcane Vault' (CTRL+F can help) and rightclick it.
Make a "New Custom Unit...", and now edit this new custom vault to your liking.
I would give it a new name to avoid confusion, like "Arcane Store" or something.
To edit what items it has, edit the "Abilities - Normal" field under the new vault unit.

from what you suggest to me , Its seem successed. i was able to spawn the shop include the item, But how about if the player 1 - 12 are being used ??? Can i make it succesfully to able to spawn the shop include the item but not using Player from 1 or to 12 maybe ????
 

WolfieeifloW

WEHZ Helper
Reaction score
372
I'm not sure then.
Using any Neutrals seemed to make the shop unusable.

Although..
Try this:
Code:
Actions
    Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Actions)
        Loop - Actions
            Player - Make Neutral Passive treat (Picked player) as an Ally
 

omniversal

New Member
Reaction score
0
Player - Make Neutral Passive treat (Picked player) as an Ally << by the way how to make this part , especially "Neutral Passive" i find all the way but cant found the "Neutral passive" part.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Player - Set Alliance
Make Neutral Passive treat (Picked player) as an Ally

For Neutral Passive, look under the Preset: menu.
For (Picked player), look under the Function: menu.
For Ally, look under the only menu, Preset:.
 

omniversal

New Member
Reaction score
0
I'm not sure then.
Using any Neutrals seemed to make the shop unusable.

Although..
Try this:
Code:
Actions
    Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Actions)
        Loop - Actions
            Player - Make Neutral Passive treat (Picked player) as an Ally

That trigger is to make the neutral passive as an ally kan ?? so how to make a shop spawn in the region i want and include the item that sold inside the shop. Do we need to combine your trigger and this trigger ?
Trigger:
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Create 1 Arcane Vault for Neutral Passive at (Center of (Playable map area)) facing Default building facing degrees
??? i have tried it but its failed because there is no item that sold in that shop !!
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Why does the item need to be added via triggers?
WolfieeifloW said:
Although, this unit will now come with the default items in it.
If you want to make it different, go into the 'Object Editor', under the 'Units' tab.
Find the 'Arcane Vault' (CTRL+F can help) and rightclick it.
Make a "New Custom Unit...", and now edit this new custom vault to your liking.
I would give it a new name to avoid confusion, like "Arcane Store" or something.
To edit what items it has, edit the "Abilities - Normal" field under the new vault unit.
 

omniversal

New Member
Reaction score
0
Why does the item need to be added via triggers?

no..no.. thats not what i mean.
I mean this trigger

Code:
Actions
    Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to Is playing)) and do (Actions)
        Loop - Actions
            Player - Make Neutral Passive treat (Picked player) as an Ally
[/QUOTE]

it just to make a neutral building you that i summon to become our ally but not spawn a building , right ???.
so what i need to do to spawn a building in the region i want ?? should i used a trigger to spawn building ? i have tried including add the the trigger you give me in a new trigger category ( trigger that you give me and trigger to spawn building is separated) but its failed because it only spawn the building that doesnt contain any item.
Or maybe i wrong in triggering ?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Just pre-place the building, since you're doing it at map init anyways.
Then add items to it through Object Editor.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Place it manually in the map, and manually edit items in the Object Editor.
No need for triggers except to ally the players with Neutral Passive.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
...

In the editor, place the unit, manually, yourself, with your mouse.
On your map, wherever you want it.
Then, in Object Editor, manually, yourself, with your mouse:
Add the items into the custom shop in the Object Editor.

The only trigger you need, is to make the players treat the shop as an ally.
 

omniversal

New Member
Reaction score
0
...

In the editor, place the unit, manually, yourself, with your mouse.
On your map, wherever you want it.
Then, in Object Editor, manually, yourself, with your mouse:
Add the items into the custom shop in the Object Editor.

The only trigger you need, is to make the players treat the shop as an ally.

you mean the trigger i need to use is the trigger that make the shop as an ally that you give me ???
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top