Weird impy thing
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > KillerID?
 
Author
All times are GMT. The time now is 19:03. Post New Thread    Post A Reply
dominik120
Newbie


Posts: 3
Registered: 11-11


Hi!
I need help with the script i wanna make for my WAD.
This WAD is a cooperative wad, and you need money to buy health, guns, and others.
I already made a money system ( every person has his own money ).
But now i need a system, wich checks, who killed the enemy?
Because if you killed it, only YOU must get money, but in my code everyone gets the money if the monster is killed!

i need like "killerid" in pawno (SA-MP).

Code: (executed on enemy dies)

script 2 (void)
{
Money[PlayerNumber()] += 25;
setfont("BIGFONT");
sethudsize(640,480,1);
HudMessagebold(d:Money[playernumber()],
s:" $";
HUDMSG_PLAIN, 1, CR_RED, 600.0, 395.0, 5.0);
}

Old Post 12-17-13 12:49 #
dominik120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
plums
Senior Member


Posts: 1949
Registered: 08-13


If you don't mind doing it in DECORATE, A_GiveToTarget would do it easily.

Old Post 12-17-13 12:58 #
plums is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
dominik120
Newbie


Posts: 3
Registered: 11-11



plums said:
If you don't mind doing it in DECORATE, A_GiveToTarget would do it easily.


And how can i do it? It says, invalid class "money" at decorate line 6...
Some tutorial?

Old Post 12-17-13 17:11 #
dominik120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
plums
Senior Member


Posts: 1949
Registered: 08-13


Is your money system entirely in ACS? I don't really know enough about scripting to help you... you might have better luck in the ZDoom forums?

Old Post 12-17-13 18:03 #
plums is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
dominik120
Newbie


Posts: 3
Registered: 11-11



plums said:
Is your money system entirely in ACS? I don't really know enough about scripting to help you... you might have better luck in the ZDoom forums?


Yes, It's in ACS. I hope i will have luck there, thanks!

Old Post 12-17-13 18:33 #
dominik120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 19:03. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > KillerID?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.