• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Warpten Triggers?

Status
Not open for further replies.
Level 4
Joined
Jun 5, 2008
Messages
33
ok i'm trying to make a Admin Warpten system that Admins can turn on for X player to give them a boost (like it sets to 50% building,upgrading,researching,training,reviving, ect) as soon as they start building or whatnot...is this possible? i can't find anything in search so i'm prob only person that wants (or that needs help w/ it -.-")
please and ty.
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
This will probably desync, but you could use this:
JASS:
function Warpten takes player p returns nothing
    if GetLocalPlayer() == p then
        call Cheat("warpten")
    endif
endfunction
 
Level 7
Joined
Jul 20, 2008
Messages
377
Cheats do not work in multiplayer, local or not.

In fact, running this:

JASS:
function Warpten takes nothing returns nothing
   if GetLocalPlayer()==GetLocalPlayer() then
      call Cheat("warpten")
   endif
endfunction

is LOGICALLY the same as:
JASS:
function Warpten takes nothing returns nothing
   call Cheat("warpten")
endfunction

Which doesn't do anything to begin with. It doesn't matter if you are running it using GetLocalPlayer(), because the game already virtually runs everything for every player locally. So if it doesn't work without GetLocalPlayer()... you can bet your horses it isn't gonna work with GetLocalPlayer().

Things like DisplayMultiboard(), though, work because they also work without GetLocalPlayer(), although that would make it work for all players instead of just a few if you were using GetLocalPlayer().
 
Status
Not open for further replies.
Top