Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Creat unit with properties
Creat unit with properties
May 24 2010, 6:59 pm
By: ClansAreForGays  

May 24 2010, 6:59 pm ClansAreForGays Post #1



I want to create a unit with proporties in scmdraft2 via the visual trigger editor. I've only used 6 of the CWUP slots [sic?], and the properties I set are saved, and are still there when I pull the map back of later, but the map basically just does it like "create unit". Specifically, I need to make a unit spawn with half hp, and no - creating it then making another trigger that modifies hp of units at location isn't an option. What's going on?

Using another editor will make the map unstable.




May 24 2010, 7:01 pm Aristocrat Post #2



Posting your map/triggers would help, you know...

Are you sure you don't have another trigger for "set unit hitpoints" somewhere?

You also should just use the text editor and Ctrl+F.



None.

May 24 2010, 7:21 pm ClansAreForGays Post #3



I know the map, there isn't. And if you knew about the text trigger for create unit /w properties, then you'd know the parameter it uses for the unit's properties cant be interpreted just by looking at it even if I did post it. If you've never even heard of this problem I don't think you can help.




May 24 2010, 7:25 pm NudeRaider Post #4

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

There's several possible reasons:
- You've already used all CUWP slots.
- Another trigger sets the hp immediately after it's been created. Try other properties to make sure.
- Another trigger counteracts your first. For example by removing/recreating the unit. Delete all other triggers to make sure.
- The trigger isn't even running, but another in its stead. Add a unique action to that trigger to make sure.
- You are hosting the wrong map.
- You are not saving your changes.

EDIT:
Maybe it's because of TinyMap2?




May 24 2010, 7:46 pm rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

1.) ensure the CUWP slot is correct by changing it to make it invincible as well.
2.) do it with text trigedit.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 24 2010, 9:36 pm Aristocrat Post #6



Quote from ClansAreForGays
I know the map, there isn't. And if you knew about the text trigger for create unit /w properties, then you'd know the parameter it uses for the unit's properties cant be interpreted just by looking at it even if I did post it. If you've never even heard of this problem I don't think you can help.

See that tab called "Unit Properties" in TrigEdit? Yeah, you CLICK ON THAT.



None.

May 24 2010, 9:40 pm ClansAreForGays Post #7



Quote from rockz
1.) ensure the CUWP slot is correct by changing it to make it invincible as well.
ah, cool. Where can I manually edit the cuwp slots?
Quote
2.) do it with text trigedit.
well I don't understand how the parameters work with cuwp. All I really know so far is 4 = invincible.... most of the time.




May 24 2010, 10:55 pm rockz Post #8

ᴄʜᴇᴇsᴇ ɪᴛ!


Well there's your problem. You have 64 CUWP slots. The number you see refers to that particular slot. You can also use uberation to edit slots. Just fyi, this is the same way strings are referenced in other things like trigger duplicator (the string is located in the string section, then called back by a number in the actual trigger.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 24 2010, 11:27 pm ClansAreForGays Post #9



Wow that was eye opening. I should be able to beat this now.




May 25 2010, 12:54 am Lanthanide Post #10



Crap! I never knew about that either. Jeeze, that would've saved me a lot of time. Now I'll need to go through and check that my CUWP slots are as efficient as possible. I'm sure they are (after my tedious manual checks), but this'll help confirm it.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:55 pm]
Zoan -- :wob:
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
Please log in to shout.


Members Online: 9sophiec5285ep5, 8charlottee882wh3, newageofpower