• 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][/php]

Status
Not open for further replies.

Ralle

Owner
Level 79
Joined
Oct 6, 2004
Messages
10,183
[trigger:1:e99c85b739]DoSomething
Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Actions
Set String = -give
Set Start = (Length of String)
Set End = (Start + 7)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 1, Start)) Equal to String
(Integer((Substring((Entered chat string), Start, End)))) Greater than or equal to 1
(Integer((Substring((Entered chat string), Start, End)))) Less than or equal to 1000000
Then - Actions
Set Value = (Integer((Substring((Entered chat string), Start, End))))
Else - Actions
[/trigger:1:e99c85b739]

[php:1:e99c85b739]<?php
echo "hello";
echo "this rocks!";
?>[/php:1:e99c85b739]

there are two new kinds of bbcodes for this board...! [php ] and [trigger ]
 
Level 5
Joined
Mar 11, 2006
Messages
195
[trigger:1:e082e4b02b] hmmz this
puts weird no loadable
images in front of
my sentences? [/trigger:1:e082e4b02b]
with which i mean i get a notloaded picture symbol thingy in front of all sentences
 

Ralle

Owner
Level 79
Joined
Oct 6, 2004
Messages
10,183
well you know in warcraft you can make triggers (gui-interfacial programming for warcraft maps) which can be copied, as text. they would look prety much like this when copied:
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Run melee AI scripts (for computer players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Melee Game - Run melee AI scripts (for computer players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Melee Game - Run melee AI scripts (for computer players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Run melee AI scripts (for computer players)
but it would look like this, in world editor:
[trigger:1:7f2fb7af23]Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Run melee AI scripts (for computer players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Melee Game - Run melee AI scripts (for computer players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Melee Game - Run melee AI scripts (for computer players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Run melee AI scripts (for computer players)[/trigger:1:7f2fb7af23]
 
Status
Not open for further replies.
Top