Staredit Network

Staredit Network -> UMS Assistance -> Help
Report, edit, etc...Posted by Corbo(MM) on 2005-08-26 at 13:56:22
i hate to ask for help -.- but i got no option i've been trying to make this work for about 2 hours and i can't make it it's a basic weapon switch system when you unload a certain unit that unit moves to where the other unit is but some times it changes right the next one it goes to another place and sometimes it just moves the unit and you get 2 units -.-
k so that u get it i'll post the map you might wait like a lot because of the tutorial i added to use the comands and all that stuff
one thing the action has to be move not create because it has to be damaged right like it was and if i create it (easy) will just like be recovering all the health
[attachmentid=13293]

you might wonder what does "En cualquier lugar"means and it means anywhere
NOTE: the triggers have been modified a lot of times and the history scene has been omited to watch the scene just change the Set Switch"scene 1" in a trigger that has no coment to watch the whole thing take note that the map is not done and there is no edited text, sprites nor music
Report, edit, etc...Posted by Urmom(U) on 2005-08-26 at 15:03:12
ok ill get to work on this before i leave.

well so far, im not exactly sure what im supposed to find. i thought it would be where you unload units from the dropship and itll change weapons and such. also, for the center location thing, make it so that instead of always, you use bring at least 1 'unit to center' to 'anywhere'. also, the change weapons way you are doing isnt the best way to do it with your triggers, you could make it more efficient. also, i dont think anything is clearing the switches sub machine gun, sniper rifle, and rocketlauncher.
Report, edit, etc...Posted by Corbo(MM) on 2005-08-26 at 16:15:49
the triggers with coment "weapon"+change end up in clear switch then preserve trigger i guess let me check yes they are
Report, edit, etc...Posted by AFL-InuYasha on 2005-08-26 at 21:48:20
i didnt dl the map, my cpu messed up, but ill create some triggers from scratch for u


Trigger
Description:
center location
Players:
¤ player 1
Conditions:
¤ current player brings at least 1 unit to location(play area)
Actions:
¤ move location(p1 unit) on men owned by current player at location(play area)
¤ perserve trigger



Trigger
Description:
sub machine gun
Players:
¤ player 1
Conditions:
¤ current player brings atlaest 1 sub machine gun to location(weapon change)
Actions:
¤ move all men at location(p1 unit) to location(p1 weapon load)
¤ move 1 sub machine gun at location(p1 weapon change) to location(p1 unit)
¤ move 1 dropship for player 1 at location(p1 weapon change) to location(p1 weaopn load)
¤ move 1 dropship for player 1 at location(p1 weapon load) to location(p1 weaopn change)
¤ run AI script enter transport at location(p1 weapon load)
¤ display text message: Weapon changed to Sub Machine Gunpreserve trigger
¤ preserve trigger



Trigger
Description:
sniper rifle
Players:
¤ player 1
Conditions:
¤ current player brings atlaest 1 sniper rifle to location(weapon change)
Actions:
¤ move all men at location(p1 unit) to location(p1 weapon load)
¤ move 1 sniper rifle at location(p1 weapon change) to location(p1 unit)
¤ move 1 dropship for player 1 at location(p1 weapon change) to location(p1 weaopn load)
¤ move 1 dropship for player 1 at location(p1 weapon load) to location(p1 weaopn change)
¤ run AI script enter transport at location(p1 weapon load)
¤ display text message: Weapon changed to Sniper Rifle
¤ preserve trigger



Trigger
Description:
rocket launcher
Players:
¤ player 1
Conditions:
¤ current player brings atlaest 1 rocket launcher to location(weapon change)
Actions:
¤ move all men at location(p1 unit) to location(p1 weapon load)
¤ move 1 rocket launcher at location(p1 weapon change) to location(p1 unit)
¤ move 1 dropship for player 1 at location(p1 weapon change) to location(p1 weaopn load)
¤ move 1 dropship for player 1 at location(p1 weapon load) to location(p1 weaopn change)
¤ run AI script enter transport at location(p1 weapon load)
¤ display text message: Weapon changed to Rocket Launcher
¤ preserve trigger


loaction(play area) - area where drop ship doesnt go
loaction(p1 unit) - location centered on hero in play area
loaction(p1 weapon change) - where weapons are unloaded to be changed (uncheck the air boxes in location properties)
loaction(p1 weapon load) - where weapons are reloaded into the dropship

hope this helps tongue.gif
Report, edit, etc...Posted by PCFredZ on 2005-08-26 at 22:30:56
Problems list:
  • The Center Location action does not center ONLY if the targeted unit is present. The way you did it, it will always end up on the last unit centered (Rocket Launcher), but when it can't find a Rocket Launcher on the map anywhere, it will automatically center on the map's own center (what Urmom described)
  • The Enter Transport AI Script shouldn't have waits next to it, since you want to constantly run it.
  • When is switch "play 1" set? I can't find it, and yet it's required for the Sub Machine Gun.
  • Your weapon switching system uses 2 triggers for each switch, yet you only need 1; don't fragment up triggers when you don't need to!
Also, whether or not it was intentional, there's no trigger that would reset the weapons (that is, move them back to where the Dropship is) after you switch them.




I looked over InuYasha's triggers, and I suspect that what he posted is close to what you're trying to do. However, the last three need fixing in that the action "¤ move 1 dropship for player 1 at location(p1 weapon load) to location(p1 weaopn change)" should be moved to after the action "¤ run AI script enter transport at location(p1 weapon load)", which I think was just an unintended blunder. Also, I think there's a delay in the Enter Transport script too, so you'd need a Wait in there as well.

E.g.



Trigger
Description:
sub machine gun
Players:
¤ player 1
Conditions:
¤ current player brings atlaest 1 sub machine gun to location(weapon change)
Actions:
¤ move all men at location(p1 unit) to location(p1 weapon load)
¤ move 1 sub machine gun at location(p1 weapon change) to location(p1 unit)
¤ move 1 dropship for player 1 at location(p1 weapon change) to location(p1 weaopn load)
¤ run AI script enter transport at location(p1 weapon load)
¤ wait 200 ms
¤ move 1 dropship for player 1 at location(p1 weapon load) to location(p1 weaopn change)
¤ display text message: Weapon changed to Sub Machine Gunpreserve trigger
¤ preserve trigger


Red=addition, Yellow=relocation
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-27 at 00:07:24
I don't know if you got it working already but i fix it for you
i kinda did it in a diffrent way but u can change it
[attachmentid=13316]
Report, edit, etc...Posted by (U)Bolt_Head on 2005-08-27 at 14:32:29
QUOTE
- Make your topic title descriptive of your problem. This will help others who are searching the forum to find the solution to the same problem you might be having.

Next Page (1)