Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Inventory problem
Inventory problem
Mar 19 2009, 11:46 pm
By: FooFighters  

Mar 19 2009, 11:46 pm FooFighters Post #1



The Problem: The items cant be used when dropped off. I want the units to be removed and "Used."

Example: of what SHOULD happen when its fixed
Player 1 has picked up a Healing Item, which creates a unit in the dropship locale and picks it up
Player 1 drops off the Healing Item
The Game checks the triggers and notices the healing item is out,
Player 1 removes healing item,
Player 1 gets message, "You did what you had to do to heal"
Player 1 is left with the dropship and nothing else!

Set-Up


Post has been edited 1 time(s), last time on Mar 21 2009, 12:05 am by FooFighters.



None.

Mar 19 2009, 11:55 pm Falkoner Post #2



1. Is there actually a preserve trigger on these? Or what?

I think the issue is that they are executing in the wrong order, however, I also think you have overcomplicated this way too much, just detect when the unit is out, do the actions, or set a death to do the actions, set a switch to say it is out, and then run the AI to make it go back in in the same trigger. Make sure that the unit is back in the air-only location(or out of the ground one) before you clear the switch again, so it won't run multiple times.

EDIT: This is assuming that you are trying to do a dropship spellcasting/item using system



None.

Mar 19 2009, 11:56 pm NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

an explanation what should happen would be nice.




Mar 20 2009, 12:41 am FooFighters Post #4



It's clear on what should happen on the map...
The Item should be dropped off, then used... not put back in the dropship which is what it is currently doing... and i dont understand a lot of what Falk's saying... i hate PSSA days, they make me so stupid

EDIT: Here is the map to download... and if u look in-game, plz, i advise u, have ur volume on mute, my music is messed up on that version, and i want to fix the inventory first, b/c i alrdy fixed the music
http://www.staredit.net/topic/6735/unread/#special

Also, it instantly goes back in when u pick up an item, not before



None.

Mar 20 2009, 1:40 am NudeRaider Post #5

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from FooFighters
The Item should be dropped off, then used... not put back in the dropship which is what it is currently doing...
I'm pretty sure that can't be all you want to happen, but here's your answer:
Create a location 'ground' at the dropship, which has all air checkmarks unchecked.
When you drop a unit out the dropship it will get detected, so you can remove it and run your trigger. Like this:

<Player Force>
Conditions:
Current Player brings at least 1 Marine to 'ground'
Actions:
Remove 1 Marine at 'ground'
<Item Actions>
(optional: Preserve Trigger)

Make a trigger for every item.




Mar 20 2009, 4:30 am Falkoner Post #6



Yeah.. Just remove it instead of running the Enter Transport AI..



None.

Mar 20 2009, 4:35 am Vi3t-X Post #7



I suppose he wants each item to stay permanently. For example, you only use one Dropship slot for "Medic Pack".



None.

Mar 20 2009, 10:43 pm FooFighters Post #8



Quote from FooFighters
It's clear on what should happen on the map...
The Item should be dropped off, then used... not put back in the dropship which is what it is currently doing...
Also, it instantly goes back in when u pick up an item, not before
Where do you get that i want to keep it, i have the trigger to remove it... its that it is instantly going back in...and not using the item... which is a problem!
Look at the map, i have the trigger to remove it, i have the location that uses items for all players [4 locations to move dropships, and 1 location to use everyone's items... which may glitch if i use switches



None.

Mar 20 2009, 11:09 pm l3lack-l3ahamut Post #9



Just a guess...

without looking at the map, when an Item is picked up you create it under the dropship and that is why you have a trigger ordering it to load into the dropship... the problem is the trigger to use the item also places the item under the dropship and well the loading trigger is higher in the trigger list. Though even if you put it after the loading trigger it would just get used immediately and never stay in your inventory at all... is this how it is currently set up?



None.

Mar 20 2009, 11:23 pm NudeRaider Post #10

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from FooFighters
Quote from FooFighters
It's clear on what should happen on the map...
The Item should be dropped off, then used... not put back in the dropship which is what it is currently doing...
Also, it instantly goes back in when u pick up an item, not before
Where do you get that i want to keep it, i have the trigger to remove it... its that it is instantly going back in...and not using the item... which is a problem!
Look at the map, i have the trigger to remove it, i have the location that uses items for all players [4 locations to move dropships, and 1 location to use everyone's items... which may glitch if i use switches
Your explanations are sketchy at best. You should explain in detail which functions you want. We don't need to know what you don't want (which is what you're repeating over and over).

I already posted the trigger for using the items. There's no enter dropship command, so your problem should be gone if you use it. If that's not enough you should tell me what additional functions you need.




Mar 21 2009, 12:02 am FooFighters Post #11



Okay, taking Nude's suggestion...
i will update the thing up there...



None.

Mar 21 2009, 12:55 am l3lack-l3ahamut Post #12



Since you overlooked my post and further confirmed my suspicion. Your trigger for picking up items is firing before the use of the item trigger since its the same location even switching the trigger order will not help because then any item you pick up will be used immediately. So you need to set a switch or something so it only loads the dropship as they pick up an item then switch it back once its entered so any unit you drop will be used and not loaded back in.



None.

Mar 21 2009, 1:16 am FooFighters Post #13



I'll try your suggestion Vhaeraun


EDIT: Ya, i'm not understanding it much...
Could you make an example trigger, i can't think about it in my head

Post has been edited 1 time(s), last time on Mar 21 2009, 1:31 am by FooFighters.



None.

Mar 21 2009, 1:36 am l3lack-l3ahamut Post #14



Ill give you sudo triggers...

1a:
Conditions:
Player walks near item
Actions:
Set switch
Create item under dropship
Preserve

1b:
Conditions:
Switch is set
Item is under dropship
Actions:
Load item into dropship
Clear switch
Preserve

2a:
Conditions:
Player uses item
Switch is cleared
Actions:
remove item
(item effect here)
Preserve

Do so for all types of items...



None.

Mar 21 2009, 1:42 am FooFighters Post #15



Ok, i'm going to use that, and test my new ammo system at the same time... hopefully both work out fine

Edit: Didn't see my ammo system at work yet, but i'm glad to say that the problem is solved
CLOSE TOPIC PLEASE

Post has been edited 1 time(s), last time on Mar 21 2009, 1:52 am by FooFighters.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
[2024-4-11. : 4:18 pm]
IlyaSnopchenko -- still better than "Pakistani hookers in Sharjah" that I've seen advertised in another forum
[2024-4-11. : 4:07 pm]
Ultraviolet -- These guys are hella persistent
[2024-4-11. : 3:29 pm]
Vrael -- You know, the outdoors is overrated. Got any indoor gym and fitness equipment?
[2024-4-10. : 8:11 am]
Sylph-Of-Space -- Hello!
Please log in to shout.


Members Online: eksxo, Roy