Staredit Network

Staredit Network -> Concepts -> TRIGGERS OF GOD
Report, edit, etc...Posted by JohnnyHazardous on 2005-07-27 at 21:31:35
QUOTE(m.r.bob @ Jul 27 2005, 06:18 PM)
Becuase that is the only way you'll be able to apply it without a new editor coming out.
[right][snapback]272108[/snapback][/right]


I didn't say "Why do we need to know all of this?" I said "What do we need to know to understand all of this code anyway?"

I read most of it. I'm going to Google "hex editing" and stuff like that.
Report, edit, etc...Posted by Carlsagan43 on 2005-07-27 at 21:34:59
CODE
#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
   
   long a=0;
   int b=0;
   int c=1;
   
   cout<< "First Chnage the hex value into a decimal number with your calculator, and then input that value here";
   
   cin >> a;
   
   a = a - 5322916;
   
   run1:
       
       if (a > 48){
             a = a-48;
             b= b+1;
             goto run1;
             }
             b=b-65536;
             
   run2:
        if (a > 4){
              a= a-4;
              c= c+1;
              goto run2;
              }
             
             
  cout << "Set Deaths(P"<< c<< ", SetTo, x, "<<b<<")"<<endl;
                 
   
   
   system("PAUSE");
   return EXIT_SUCCESS;
}


would this work?
Report, edit, etc...Posted by Devil_O_Duce on 2005-07-27 at 21:36:34
could someone plz explain this in english? not text SF code
Report, edit, etc...Posted by LegacyWeapon on 2005-07-27 at 21:45:38
You are not converting between decimal and hex. You are converting between signed and unsigned.
CODE
#include <iostream.h>

void main()
{
   short  i = -3;
   unsigned short u;

   cout << (u = i) << "\n";
}
Isntead of short, you can have long, double, or byte.
Report, edit, etc...Posted by Devil_O_Duce on 2005-07-27 at 21:51:46
????????????stilldont get it??????????
so explain it not in text explain what the text means
Report, edit, etc...Posted by ShinRa_Soldier on 2005-07-27 at 21:54:15
QUOTE(LegacyWeapon @ Jul 27 2005, 08:45 PM)
You are not converting between decimal and hex. You are converting between signed and unsigned.
CODE
#include <iostream.h>

void main()
{
   short  i = -3;
   unsigned short u;

   cout << (u = i) << "\n";
}
Isntead of short, you can have long, double, or byte.
[right][snapback]272145[/snapback][/right]


Thats C++ isnt it?
Report, edit, etc...Posted by scwizard on 2005-07-27 at 22:02:09
I admit that I am confused as well.
Report, edit, etc...Posted by Carlsagan43 on 2005-07-27 at 22:02:46
yes it is, but I want to convert between hex values and SC death trigger values
Report, edit, etc...Posted by Subrosian on 2005-07-27 at 22:02:48
Is it supposed to crash when I load up Deathknight's marines with shields trigger with Starforge? I replaced my actions.lst and conditions.lst files with the ones Deathknight posted at least 3 times and it still doesn't work.

Also, when I try to use DTBK's graphic changing trigger, it doesn't work; it pops up an error.
Report, edit, etc...Posted by ShinRa_Soldier on 2005-07-27 at 22:11:38
The graphic switcher could be used to perfect an ammo system, I tried but the cacoons it makes cannot be selected or detected....
Report, edit, etc...Posted by l)ark_13 on 2005-07-27 at 22:31:23
QUOTE(Subrosian @ Jul 27 2005, 07:02 PM)
Is it supposed to crash when I load up Deathknight's marines with shields trigger with Starforge?  I replaced my actions.lst and conditions.lst files with the ones Deathknight posted at least 3 times and it still doesn't work.

Also, when I try to use DTBK's graphic changing trigger, it doesn't work; it pops up an error.
[right][snapback]272160[/snapback][/right]


You probably have a mac. These triggers dont work on macs. Sorry.
Report, edit, etc...Posted by TERRAINFIGHTER on 2005-07-27 at 22:46:03
The code is also differant in starforge from what ive heard...
I think the text he has typed out is for Scmdraft 2 not Starforge but im not very sure confused.gif
Report, edit, etc...Posted by Do-0dan on 2005-07-27 at 22:58:56
wow
with this, who needs sc2? biggrin.gif

uhh, sorry if im wrong but i didnt see any explanation on how to change the map size yet..... can someone plz post how
Report, edit, etc...Posted by Night on 2005-07-27 at 23:26:52
I just played sum1's map with extended triggers and then i saved replay... i was watching it and when the triggers were supposed to make the speed go 64x (or w/e ths speed was) it changed the speed on my replay.. it was REALLY weird.. well the weird part was that it said: "Replay Speed: You Have Been" then it cuts off there. WAT DOES THE REST SAY?!?!?

EDIT:
Damn, i didnt read Page 10-14 so i didnt see the other things about the replay. And obviously there is a spot to DL a replay...
Report, edit, etc...Posted by Ninebreaker on 2005-07-27 at 23:35:21
QUOTE
Obviously SF won't accept that so you need to enter instead of 35748, you will need to enter 35748 - 65536 = -29788.


So if i minus 65536 from any of the given numbers for SF it will stop crashing?

(the ones on DK's first post)

EDIT: err for the sheild giving triggers.
Report, edit, etc...Posted by pimpinelephant on 2005-07-27 at 23:46:51
yes, DTBK explained that 68 pages ago...
Report, edit, etc...Posted by axblader on 2005-07-27 at 23:54:08
Omg lol.
I come back from a 2 month vacation from SC and I find all this going on.
GJ DK!

Anyways, I'm learning programming and this is making me wanna make a mod with triggers too!

EDIT:

And elephant, I c you visited my site =)

ADDITION:

Also, I want to know what is the max damge a unit can do? Also what is the max hp they can have.

Also, I find something weird:
Armor upgrades (And weapons upgrades) can only go to 255. In the unit's properties it can go another 255, thus making the armor a total of 510...

Does that mean the armor can go higher? Like 65535 (Ahg, i forget the number , again lol)

If thats not possible, then it must mean that there are 3 values for a units armor... upgrades, the units armor, and the total...
Maybe we could mod the total and give the unit UBER armor! =)
Report, edit, etc...Posted by Subrosian on 2005-07-27 at 23:57:38
QUOTE(l)ark_13 @ Jul 27 2005, 08:31 PM)
You probably have a mac.  These triggers dont work on macs.  Sorry.
[right][snapback]272186[/snapback][/right]


I don't have a MAC.

Also, the thing that affects MACs is when you run it on Starcraft; there was no mention of a difference between the PC when you load it on Starforge.
Report, edit, etc...Posted by Ninebreaker on 2005-07-28 at 00:01:29
On page 9
QUOTE
So to add shields for a unit (with the ID 1), you will need this trigger:
SetDeaths(P3, Add, 1, 35748);
If you wanted to add shields for a unit (with the ID 2), you will need this trigger:
SetDeaths(P3, Add, 256, 35748);
If you wanted to add shields for a unit (with the ID 3), you will need this trigger:
SetDeaths(P3, Add, 65536, 35748);
And if you wanted to add shields for a unit (with the ID 4), you will need this trigger:
SetDeaths(P3, Add, 16777216, 35748);

Now to add shields for a unit (with the ID of 5), you will need this trigger:
SetDeaths(P4, Add, 1, 35748);

One last question, where might i find the unit ID at?

I should be good then.
Report, edit, etc...Posted by Urmom(U) on 2005-07-28 at 00:02:21
i tried using 6B674C - deaths of unit 35748 for player 7 to make my marine have sheilds but it gave me an error. my sf trigger was

Always();
-------------
SetDeaths(P7,SetTo,6B674C,35748);
PreserveTrigger();

What am i doing wrong? i need to figure this out so i can implement it into my map.
Report, edit, etc...Posted by pimpinelephant on 2005-07-28 at 00:02:56
QUOTE(Ninebreaker123 @ Jul 27 2005, 09:01 PM)
On page 9

One last question, where might i find the unit ID at?

I should be good then.
[right][snapback]272263[/snapback][/right]


place a unit in SF, then highlight it, then press enter and a box shows up, it tells u its id where it says Unit Type i think it is.

QUOTE(urmom)
i tried using 6B674C - deaths of unit 35748 for player 7 to make my marine have sheilds but it gave me an error. my sf trigger was

Always();
-------------
SetDeaths(P7,SetTo,6B674C,35748);
PreserveTrigger();

What am i doing wrong? i need to figure this out so i can implement it into my map.


SetDeaths(P3, SetTo, 1, -29788);
thats for a marine
35748 - 65536 = -29788
you should read back a few pages, Legacy and DTBK explained a lot of this stuff
Report, edit, etc...Posted by Ninebreaker on 2005-07-28 at 00:09:48
Ty very much, i can do it now biggrin.gif
Report, edit, etc...Posted by Dr.Shotgun on 2005-07-28 at 01:12:25
<<The unit graphics switch map didnt work.
Yes, I am on a pc.
Report, edit, etc...Posted by Devil_O_Duce on 2005-07-28 at 01:14:26
i made a marine with yamato gun and could spawn ghosts lol it was messed up
Report, edit, etc...Posted by blizter on 2005-07-28 at 01:20:43
Me , l)ark_13, mEp) and © are doing some map with combined units.
We can combine EVERYUNIT in the game. With this we can make a nuke moving and attacking with interceptors, or cloaking,?Burrowing? (maybe) And much more. Like Wraith with stim pack !!!!


Here some units :

By me [attachmentid=12195]

l)ark_13 [attachmentid=12196]

By mEp) [attachmentid=12197]

look at them tongue.gif
Next Page (11)