Unit Properties
Feb 25 2009, 6:00 pm
By: Lt.Church  

Feb 25 2009, 6:00 pm Lt.Church Post #1



The shoutbox failed me so i come here in search of help. I need the unit property number for hallucination, i know invincible is 5 i thought hallu was 4 but i was wrong. If you have a list of multiple unit properties by number thatd be even better.



None.

Feb 25 2009, 6:07 pm samsizzle Post #2



i dont know what the number is because i dont use the complicated trigger editor, but if you use the simple one and set the properties to hallucinated, then look at the complicated trigger editor and you should see it. If were talking about the same thing.



None.

Feb 25 2009, 6:19 pm poiuy_qwert Post #3

PyMS and ProTRG developer

http://www.staredit.net/wiki/scenario.chk_format#%22UNIT%22_Section

If thats not what you are asking then I misunderstood you.




Feb 25 2009, 6:37 pm Heinermann Post #4

SDE, BWAPI owner, hacker.

There's no "unit property number for hallucination". I've never heard of such a thing.

You have to create the unit property slots for use in triggers.




Feb 25 2009, 6:52 pm Lt.Church Post #5



Quote from Heinermann
There's no "unit property number for hallucination". I've never heard of such a thing.

You have to create the unit property slots for use in triggers.

CreateUnitWithProperties(1, Kukulza Guardian, Ishidafollow, CurrentPlayer, 5);

Thats invincibility Hence, invincibility is 5. To show you where i got 'unit property number' from see the bold.



None.

Feb 25 2009, 6:59 pm Wormer Post #6



Quote from Lt.Church
CreateUnitWithProperties(1, Kukulza Guardian, Ishidafollow, CurrentPlayer, 5);

Thats invincibility Hence, invincibility is 5. To show you where i got 'unit property number' from see the bold.

This is only CUWP slot. Look in text trigger editor to browse through your CUWP slots.

Post has been edited 1 time(s), last time on Feb 25 2009, 7:21 pm by Wormer.



Some.

Feb 25 2009, 7:01 pm Lt.Church Post #7



Quote from Wormer
Quote from тфьуЖдеюсргкср
CreateUnitWithProperties(1, Kukulza Guardian, Ishidafollow, CurrentPlayer, 5);

Thats invincibility Hence, invincibility is 5. To show you where i got 'unit property number' from see the bold.

This is only CUWP slot. Look in text trigger editor to browse through your CUWP slots.

your assumption is that im using scmdraft right now... Anyways its apperently 1 without invincible 2 with, thanks to lack of help folks, though i do have scmdraft and i do use it also so i'll check into that next time i need something. Thanks for the partial help wormer.

Well, it appears starforge doesnt use the same CUWP slotting system as scmdraft so, id still like to know the property numbers for starforge if anyone has them, if not ill have to change it in scmdraft later...

Post has been edited 1 time(s), last time on Feb 25 2009, 7:06 pm by Lt.Church.



None.

Feb 25 2009, 7:06 pm Wormer Post #8



You misunderstand what a CUWP slot is.
Quote from Lt.Church
your assumption is that im using scmdraft right now... Anyways its apperently 2, thanks to lack of help folks...
Yes, it is my assumption, I just wonder what else map editor has got a trigger editor. Open your SCMD text editror and go the "Unit Properties". You'll see all CUWP slots used in your map there.

Post has been edited 1 time(s), last time on Feb 25 2009, 7:21 pm by Wormer.



Some.

Feb 25 2009, 7:07 pm Lt.Church Post #9



Quote from Wormer
You misunderstand what a CUWP slot is.
Quote from lt.church
your assumption is that im using scmdraft right now... Anyways its apperently 2, thanks to lack of help folks...
Yes, it is my assumption, I just wonder what else map editor has got a trigger editor. Open your SCMD text editror and go the "Unit Properties". You'll see all CUWP slots used in your map there.

plz read my edit... Also starforge has a text based trigger editor, infact i much prefer it over scmdrafts, thats why i use it; much easier to write in.



None.

Feb 25 2009, 7:12 pm Wormer Post #10



Okay, if this is SF I wont be so self confident, because I dont use it. Now I see that most likely it just have some predefined widely used CUWP slots configurations. You should have asked the question more clearer. Using the SF was the essential part.



Some.

Feb 25 2009, 7:14 pm Lt.Church Post #11



Quote from Wormer
Okay, if this is SF I wont be so self confident, because I dont use it. Now I see that most likely it just have some predefined widely used CUWP slots configurations. You should have asked the question more clearer. Using the SF was the essential part.

sory i dont do much triggering in SCMD i was unaware they used different systems for CUWP...

edit: guess i could make an experimental map that does all of them one by one and see what they are... but this doesnt look good for my terrain if the CUWP slots in scmdraft dont connect with ones set in starforge...



None.

Feb 25 2009, 7:20 pm Wormer Post #12



Quote from Lt.Church
guess i could make an experimental map that does all of them one by one and see what they are... but this doesnt look good for my terrain if the CUWP slots in scmdraft dont connect with ones set in starforge...
I've just opened a SF to test this, but ended up with no idea how to create a unit with specific properties. =)



Some.

Feb 25 2009, 7:30 pm Lt.Church Post #13



okay... starforge is making me very confused right now... i just created a unit for property 0-9 and in my current map 5 WAS invincible and this one it isnt :|



None.

Feb 25 2009, 7:38 pm Wormer Post #14



Have you used other editors during the creation of your main map?



Some.

Feb 25 2009, 7:40 pm Lt.Church Post #15



Quote from Wormer
Have you used other editors during the creation of your main map?

nope, usually i only use starforge, sometimes i make some experimentals in scmdraft but i often dont mix them, i WAS planning on triggering in starforge and terraining in scmdraft this time but i didnt get around to the terrain yet :unsure:



None.

Feb 25 2009, 7:48 pm Wormer Post #16



Lt.Church, look. The last parameter in the CreateUnitWithProperties action is a number of a slot which holds unit properties (which also referred to as CUWP slot). There are maximum 64 unit properties slots.

Each slot have the following fields:
Hit Points (in %)
Shield Points (in %)
Energy Points (in %)
Resources (in resource units)
Hangar Units (in pieces)
Flags (this hold such property flags as HALLUCINATION, BURROWED, INVINCIBLE, IN TRANSIT and etc.)

When you create units the specified CUWP slot is used to apply all properties it holds to the unit at the moment of creation.

You can directly edit contents of CUWP slots in SCMD text editor or indirectly in SCMD Classic Editor. My opinion is that in SF you simply cant change contents of CUWP slots. IMO you should create triggers with references to imaginable CUWP slots in SF and then fill the desired CUWP slots in SCMD later (or vice versa).



Some.

Feb 25 2009, 7:57 pm Lt.Church Post #17



i dont get EVERYTHING you said, ill go over it again after im done writing this, first thanks for the help; secondly, Can you please help me with how to change the CUWP slots in scmdraft because i tried opening my map in scmdraft and going into the CUWP slots and changing number 5 to invincible, i then pressed the save button, closed the triggerpopup and reopened it and it reverted to being blank, if i can learn how to change it and keep it changed i can do a work around where ill just insert W/E CUWP number for hallu units and just fill that slot in SCMD later on for hallu or hallu+invincible, that way itll all work out... i think... :wtfage:



None.

Feb 25 2009, 8:06 pm Wormer Post #18



You should click the compile button on the bar instead of saveing. Also a hint: I personally dont like the font issules (letters you type have smaller font) with the text trigger editor and usually copy-paste all text in notepad, edit it and then copy-paste back.

EDIT:
Quote
You should click the compile button
Please note this will null all EUD conditions/actions in the map!



Some.

Feb 25 2009, 8:12 pm Lt.Church Post #19



Quote from Wormer
You should click the compile button on the bar instead of saveing. Also a hint: I personally dont like the font issules (letters you type have smaller font) with the text trigger editor and usually copy-paste all text in notepad, edit it and then copy-paste back.

im using scmdraft 2.0 (Beta 0.80) and it says Trigedit Alpha 1 about says Trigedt v0.6.1.1, i cant find a compile button, i can only see "File - Edit - View - Help" under each theres "(File)New, Open, Save, Save as, Print, Print Preview, Print Setup, Exit"
"(Edit)Undo, Cut, Copy, Paste"
"(View)Toolbar, Status Bar, Tree"
"(Help)About"

Then there are buttons for |CUT|COPY|PASTE||PRINT|ABOUT|(?DEBUG?)

Not sure about debug but when i press it, it gives a debug dialog box. Is debug compile?

edit: okay ya, i think it is that button, it seems to be working but now its saying 3 of my strings are corrupt, any quick fix for that?

Post has been edited 1 time(s), last time on Feb 25 2009, 8:18 pm by Lt.Church.



None.

Feb 25 2009, 8:18 pm Wormer Post #20



Quote from Lt.Church
Not sure about debug but when i press it, it gives a debug dialog box. Is debug compile?
It is :)

EDIT:
Quote from Lt.Church
edit: okay ya, i think it is that button, it seems to be working but now its saying 3 of my strings are corrupt, any quick fix for that?
When does it say this? Is it telling you when you press the compile button or when you quit the Text Trigger Editor? Could you attach (or pm) the map so I could see what's happening.



Some.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
Please log in to shout.


Members Online: Roy, Ingol82, NudeRaider, Zycorax, C(a)HeK