wc3edit.net

United Warcraft 3 map hacking!
It is currently April 27th, 2024, 7:15 pm

All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: RPG Triggers
PostPosted: June 2nd, 2007, 12:53 am 
Offline
Member
User avatar

Joined: May 20th, 2007, 9:19 am
Posts: 59
Need help with rpg triggers.
Seen done with sample

Events:PlayerX types -save as exact
Condition:Unit equals hero true
Actions:Save hero as code XXXXXXXXXXX
String XXXXXXXXXXX
Show code XXXXXXXXXXX

I really don't know how to operate it
Can anyone show another easy sample

_________________
Image
Without Optimized Connection(Non-Peak Local time)
Image
With Optimized Connection(Non-Peak Local time)
Image
Lol sad...[FURTHEST Country to me , with internet server in SpeedTest.net](Non-Peak Local time)
http://www.speedtest.net/summary.php
WOW HOT PROOF :D


Top
 Profile  
 
 Post subject:
PostPosted: June 2nd, 2007, 8:34 am 
Offline
S.M.B. Creator
User avatar

Joined: January 20th, 2007, 11:32 am
Posts: 84
Location: Germany
there are 2 ways to do this.

1. you can make your own code-system that generates a code but this is hard because you must encode it yourself and then decode it with another trigger... very complex.

2. You can use Gamecache for saving your Hero. Its saver and easier to do i think.
Here is an example for such a Save-System:

First you must copy this function in the Header of the Map:

Quote:
//Get Generated Code
function GetGeneratedCode takes integer Length returns string
local integer I0
local integer RandomNumber
local string CodeWords
local string EndCode
set CodeWords = "0123456789abcdefghijklmnopqrstuvwxyzßABCDEFGHIJKLMNOPQRSTUVWXYZ"
set I0 = 0
loop
exitwhen(I0 > Length)
set RandomNumber = GetRandomInt(0, StringLength(CodeWords))
set EndCode = (EndCode + SubString(CodeWords, RandomNumber, (RandomNumber + 1)))
set I0 = (I0 + 1)
endloop
return EndCode
endfunction


Then you create a Trigger called "Save":

Quote:
Save
Events
Player - Player 1 (Red) types a chat message containing -save as An exact match
Player - Player 2 (Blue) types a chat message containing -save as An exact match
Player - Player 3 (Teal) types a chat message containing -save as An exact match
Player - Player 4 (Purple) types a chat message containing -save as An exact match
Player - Player 5 (Yellow) types a chat message containing -save as An exact match
Player - Player 6 (Orange) types a chat message containing -save as An exact match
Player - Player 7 (Green) types a chat message containing -save as An exact match
Player - Player 8 (Pink) types a chat message containing -save as An exact match
Player - Player 9 (Gray) types a chat message containing -save as An exact match
Player - Player 10 (Light Blue) types a chat message containing -save as An exact match
Conditions
Actions
Custom script: local string GameCacheName = GetGeneratedCode( 5 )
Custom script: call InitGameCache( GameCacheName + GetPlayerName( GetTriggerPlayer() ) + "2-3 Letters you've choosen. Example: xyz" + ".w3v" )
Custom script: call DisplayTimedTextToPlayer(GetTriggerPlayer(), 0.00, 0.00, 30.00, GameCacheName)
Game Cache - Store your Hero as Hero of Heros in (Last created game cache)
Game Cache - Save (Last created game cache)


Then you need a Load-Trigger:

Quote:
Load
Events
Player - Player 1 (Red) types a chat message containing -load as A substring
Player - Player 2 (Blue) types a chat message containing -load as A substring
Player - Player 3 (Teal) types a chat message containing -load as A substring
Player - Player 4 (Purple) types a chat message containing -load as A substring
Player - Player 5 (Yellow) types a chat message containing -load as A substring
Player - Player 6 (Orange) types a chat message containing -load as A substring
Player - Player 7 (Green) types a chat message containing -load as A substring
Player - Player 8 (Pink) types a chat message containing -load as A substring
Player - Player 9 (Gray) types a chat message containing -load as A substring
Player - Player 10 (Light Blue) types a chat message containing -load as A substring
Conditions
Actions
Game Cache - Create a game cache from ((Substring((Entered chat string), 7, 11)) + ((Name of (Triggering player)) + your 3 Letters! + .w3v))
Game Cache - Restore Hero of Heros from (Last created game cache) for (Triggering player) at your Area facing (Random angle)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Last restored unit) Not equal to No unit
Then - Actions
Want do you want to do with the Hero. Perhaps you want to display that its the Right Code or something like that...
Else - Actions
Game - Display to (Player group((Triggering player))) for 10.00 seconds the text: |c00FF0000Invalid Code!



I hope you understand this ;)

_________________
Image


Top
 Profile  
 
 Post subject: lol
PostPosted: June 9th, 2007, 4:06 am 
Offline
Member
User avatar

Joined: May 20th, 2007, 9:19 am
Posts: 59
this is a bit hard to catch

_________________
Image
Without Optimized Connection(Non-Peak Local time)
Image
With Optimized Connection(Non-Peak Local time)
Image
Lol sad...[FURTHEST Country to me , with internet server in SpeedTest.net](Non-Peak Local time)
http://www.speedtest.net/summary.php
WOW HOT PROOF :D


Top
 Profile  
 
 Post subject: Re: lol
PostPosted: June 9th, 2007, 6:38 am 
Offline
Forum Spammer
User avatar

Joined: May 29th, 2007, 9:02 am
Posts: 647
Location: London, England
Title: Strange old man
BrisbaneRz wrote:
this is a bit hard to catch


Keep trying, i did it :P so it cant be that hard

_________________
Sir-Tanks is BACK and working on his new map Acts of War!
Take the best Stupidity test here


Top
 Profile  
 
 Post subject: Re: lol
PostPosted: June 9th, 2007, 6:40 am 
Sir-Tanks wrote:
BrisbaneRz wrote:
this is a bit hard to catch


Keep trying, i did it :P so it cant be that hard


fag, some of us are handicapped... :D


Top
  
 
 Post subject: Re: lol
PostPosted: June 9th, 2007, 6:41 am 
Offline
Forum Spammer
User avatar

Joined: May 29th, 2007, 9:02 am
Posts: 647
Location: London, England
Title: Strange old man
Baertaemias wrote:
Sir-Tanks wrote:
BrisbaneRz wrote:
this is a bit hard to catch


Keep trying, i did it :P so it cant be that hard


fag, some of us are handicapped... :D

lol i am, im dyslexic :)

_________________
Sir-Tanks is BACK and working on his new map Acts of War!
Take the best Stupidity test here


Top
 Profile  
 
 Post subject:
PostPosted: June 9th, 2007, 6:42 am 
Oh, sorry... :roll:


Top
  
 
 Post subject:
PostPosted: June 9th, 2007, 4:43 pm 
Offline
V.I.P.
User avatar

Joined: March 4th, 2007, 12:39 am
Posts: 332
Location: United States
Isn't dyslexic when you can write with both hands or something? :?

_________________
Image
Doesn't Dekar make the world easier?

"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"

Catch me on Azeroth (U.S. East) - NameSpoofer


Top
 Profile  
 
 Post subject:
PostPosted: June 9th, 2007, 5:10 pm 
Offline
Forum Spammer
User avatar

Joined: May 29th, 2007, 9:02 am
Posts: 647
Location: London, England
Title: Strange old man
namespoofer wrote:
Isn't dyslexic when you can write with both hands or something? :?

Are you serious?

_________________
Sir-Tanks is BACK and working on his new map Acts of War!
Take the best Stupidity test here


Top
 Profile  
 
 Post subject:
PostPosted: June 9th, 2007, 5:12 pm 
Offline
V.I.P.
User avatar

Joined: March 4th, 2007, 12:39 am
Posts: 332
Location: United States
Yes.. :cry: splain please! :D :D

_________________
Image
Doesn't Dekar make the world easier?

"I Wumbo. YOU Wumbo. He she me.. WUMbo. Wumbo; WumboING; WumBOLogy; the study of WUMBO. It's first grade, Spongebob!"
"I'm sorry I doubted your great wisdom Patrick!"

Catch me on Azeroth (U.S. East) - NameSpoofer


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)