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.
[04:59 am]
zsnakezz -- >:)
[04:59 am]
zsnakezz -- :)
[04:58 am]
zsnakezz -- somebody gets it
[04:58 am]
zsnakezz -- and its not all just numbers in my file screen
[04:57 am]
zsnakezz -- thank you for your comment though, good to know some people out there tried my map out
[04:57 am]
zsnakezz -- just kidding
[04:57 am]
zsnakezz -- ultra you have any thought or notes on undead invasion?
[2024-5-31. : 2:36 pm]
Wing Zero -- Bop em
[2024-5-31. : 2:36 pm]
Wing Zero -- Mods
[2024-5-29. : 9:40 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: jun3hong