Staredit Network

Staredit Network -> UMS Assistance -> Too Many Units To Load
Report, edit, etc...Posted by MapUnprotector on 2004-08-13 at 18:51:03
well in the map im making untitled rpg i have an inventory with a dropship and you can load and unload the units in your dropship to equip yourself with them, and whenever you get a new weapon it would move it to the a location for teh dropship to load it but how would i make it so that if u get a unit but theres too many units already in the dropship it would say like "you have too many units in your inventory" and give the unit back to player 8
Report, edit, etc...Posted by Vindexus on 2004-08-13 at 18:54:06
QUOTE
Players
- Humans
Conditions
- Get new weapon
- Bring at most 8 men to Dropship Area
Actions
- Create 1 Weapon at Dropship Load
- Move Dropship to Dropship Load
- Load Dropship
- Move Dropship back
- Preserve Trigger


QUOTE
Players
- Humans
Conditions
- Get new weapon
- Current Player brings at least 9 men to Dropship Area
Actions
- Display Text "You have too many weapons"
- Other stuff


This is assuming that you're using 1x1 units only in your dropship system.
Report, edit, etc...Posted by MapUnprotector on 2004-08-13 at 18:55:52
well the thing is im not... i have like ones that take up half the dropship and ones that take up 1/4 :\
Report, edit, etc...Posted by Vindexus on 2004-08-13 at 19:01:23
Okay, try this

QUOTE
Players
- Humans
Conditions
- Get new weapon
Actions
- Move weapon to Dropship Load
- Run AI Script "enter transport"
- Set Deaths: Add 1 for unused Unit


QUOTE
Players
- Humans
Conditions
- Current Player has suffered at least 1 death of Unused Unit
- Bring at least 1 men to Dropship Load 2 (ground only location)
Actions
- Display Text "You have too many weapons"
- Other stuff
- Preserve Trigger


That should work, if it doesn't, try adding a wait between the AI script Enter Transport and adding the death counter.
Report, edit, etc...Posted by MapUnprotector on 2004-08-13 at 19:35:59
thx it works, i did what u said but used switches instead of deaths happy.gif

but there is also another problem with the weapon switch for sum reason if you have a rine and u try to change to a vulture it like switches to vulture then back to rine :\ could sum1 take a look at my map
Next Page (1)